From 13b44a50a23c6dd3cc856e407d849defa798106a Mon Sep 17 00:00:00 2001 From: Alice <alice.poggioli@hotmail.fr> Date: Tue, 19 Nov 2019 16:53:08 +0100 Subject: [PATCH] The like functionality is set but miss integration. --- src/includes/head.pug | 2 +- src/includes/mentor/resources/detail.pug | 24 +++--------------------- 2 files changed, 4 insertions(+), 22 deletions(-) diff --git a/src/includes/head.pug b/src/includes/head.pug index 9556d615..4dde5b02 100644 --- a/src/includes/head.pug +++ b/src/includes/head.pug @@ -2,7 +2,7 @@ head title CoopStarter meta(charset="utf-8") script(src="https://unpkg.com/@webcomponents/webcomponentsjs@1.2.7/webcomponents-loader.js") - script(type="module" src="https://unpkg.com/@startinblox/core@0.8") + script(type="module" src="https://unpkg.com/@startinblox/core") script(type="module" src="https://unpkg.com/@startinblox/router") script(type="module" src="https://unpkg.com/@startinblox/oidc") script(type="module" src="https://unpkg.com/@startinblox/component-conversation") diff --git a/src/includes/mentor/resources/detail.pug b/src/includes/mentor/resources/detail.pug index b87da116..ca54360b 100644 --- a/src/includes/mentor/resources/detail.pug +++ b/src/includes/mentor/resources/detail.pug @@ -74,24 +74,8 @@ include ../../components/widgets action-broken='resource-report-broken-link-mentor' ) - //TODO: implement likes here - //- <div class="like"> - //- <p class="backlink"><i class='far fa-thumbs-up'></i>18</p> - //- <p class="backlink"><i class='far fa-thumbs-down'></i>3</p> - //- </div> - - sib-display( - bind-resources - fields="" - nested-field="likes" - counter-template="<p><i class='fas fa-thumbs-up'></i>${counter}</p>" - ) - - sib-display( - bind-resources - fields="" - nested-field="dislikes" - counter-template="<p><i class='fas fa-thumbs-down'></i>${counter}</p>" + sib-like( + bind-resources, ) sib-display( @@ -120,7 +104,5 @@ include ../../components/widgets ) -sib-like( - bind-resources, -) + \ No newline at end of file -- GitLab