diff --git a/src/includes/entrepreneur/dashboard.pug b/src/includes/entrepreneur/dashboard.pug index 106a3a9963c677f1abb6f98ab305e1894a2420ab..16075cd248e755a5eaed4dddba917d3c1c78640c 100644 --- a/src/includes/entrepreneur/dashboard.pug +++ b/src/includes/entrepreneur/dashboard.pug @@ -22,6 +22,7 @@ section#home sib-router sib-route(name='entrepreneur-request-create') sib-route(name='entrepreneur-request-validation') + sib-route(name='entrepreneur-resource-detail') dialog#entrepreneur-request-create.no-sidebar.container include ./requests/create.pug @@ -31,6 +32,9 @@ section#home p.flex sib-link(next='entrepreneur-resource-list', class='button_base') Ok + dialog#entrepreneur-resource-detail.no-sidebar + include resources/detail.pug + #entrepreneur-account(hidden).no-sidebar.container include profile/detail.pug diff --git a/src/includes/entrepreneur/resources/detail.pug b/src/includes/entrepreneur/resources/detail.pug index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..f335a39274f25e8c5660f0096a50409b484f01cd 100644 --- a/src/includes/entrepreneur/resources/detail.pug +++ b/src/includes/entrepreneur/resources/detail.pug @@ -0,0 +1,125 @@ +include ../../components/widgets + +.block_log.block_creat_count.no_shadow + sib-link(class="backlink", next="entrepreneur-resource-list") + .like + p.backlink + i.fas.fa-times + + div#detail-entrepreneur-loader + hidden Loading resources, please wait... + + sib-display( + loader-id="detail-entrepreneur-loader" + bind-resources, + fields='name, steps, format, \ + submitter_info(submitter.account.picture, submitter.name, \ + submitter.mentor_profile.organisation.name, skills, uri, broken),\ + content(preview_image, tags),\ + description, review.reviewer.account.picture, review.reviewer.name,\ + copyright, specifications(\ + header_specifications, author, country, language.name,\ + publication_year, fields, sharing)', + + widget-submitter.name='cs-display-resource-property', + class-name="title_form" + class-steps="steps" + widget-author='cs-display-resource-property', + widget-country='cs-display-resource-property', + widget-submitter.mentor_profile.organisation.name='cs-display-resource-property' + class-submitter.name="autor_ressource" + class-broken="broken" + widget-format='cs-display-multiple-property' + widget-uri='cs-display-link' + class-uri="pull-left" + widget-skills='cs-display-resource-property' + widget-description='cs-display-property' + widget-name='cs-display-property' + widget-publication_year='cs-display-resource-property' + widget-sharing='cs-display-resource-property' + widget-language.name='cs-display-resource-property' + widget-submitter.account.picture='cs-account-picture' + widget-broken='cs-broken-action' + widget-preview_image='cs-preview-picture' + widget-review.reviewer.account.picture='cs-account-picture' + widget-review.reviewer.name='cs-resource-reviewer' + class-review.reviewer.name="validator_ressource" + widget-header_specifications='cs-section_header' + + label-broken='Report broken link' + label-sharing='Access:' + label-language.name='Language:' + label-publication_year='Year of publication:' + label-header_specifications='Resource specifications' + each-label-format='' + label-format='' + multiple-format + + widget-steps='cs-display-step-property' + label-steps='' + each-label-steps="Step" + multiple-steps + + widget-fields='cs-display-multiple-property' + label-fields='' + each-label-fields='Field:' + multiple-fields + + label-skills='With this resource, you will be able to:' + label-uri='Link to resource' + name-uri='original-link' + label-country='Country:' + label-submitter.mentor_profile.organisation.name='Organisation:' + label-author='Author :' + label-submitter.name='Resource posted by:' + action-broken='resource-report-broken-link' + ) + + //- Add 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-display( + bind-resources + fields="" + nested-field="conversations" + counter-template="<p>Comments (${counter})</p>" + ) + + sib-conversation( + bind-resources + id-suffix="conversations" + ) + + h2.title_lead_avenir Related resources + + sib-display( + bind-resources, + nested-field="related" + fields="name, detail" + + widget-name='cs-display-property' + label-detail='' + widget-detail='sib-action' + action-detail='mentor-resource-detail' + ) + + + + \ No newline at end of file diff --git a/src/includes/entrepreneur/resources/list.pug b/src/includes/entrepreneur/resources/list.pug index 06f5572d2c4daad3da8b1706b872ad6b20534480..bcc42ccaf0603b3ba23ebcd3821457f79a996455 100644 --- a/src/includes/entrepreneur/resources/list.pug +++ b/src/includes/entrepreneur/resources/list.pug @@ -138,7 +138,7 @@ container.block_list.flex.flex_espace widget-description='cs-display-property' widget-fields='hidden-widget' widget-language="hidden-widget" - widget-author="cs-display-property" + widget-author="hidden-widget" widget-format='cs-display-multiple-property' label-format='' multiple-format @@ -147,6 +147,8 @@ container.block_list.flex.flex_espace label-fields='' multiple-fields + next='entrepreneur-resource-detail' + paginate-by="5" ) @@ -190,7 +192,7 @@ container.block_list.flex.flex_espace widget-description='cs-display-property' widget-fields='hidden-widget' widget-language="hidden-widget" - widget-author="cs-display-property" + widget-author="hidden-widget" widget-format='cs-display-multiple-property' label-format='' multiple-format @@ -199,6 +201,8 @@ container.block_list.flex.flex_espace label-fields='' multiple-fields + next='entrepreneur-resource-detail' + paginate-by="5" ) @@ -242,7 +246,7 @@ container.block_list.flex.flex_espace widget-description='cs-display-property' widget-fields='hidden-widget' widget-language="hidden-widget" - widget-author="cs-display-property" + widget-author="hidden-widget" widget-format='cs-display-multiple-property' label-format='' multiple-format @@ -251,6 +255,8 @@ container.block_list.flex.flex_espace label-fields='' multiple-fields + next='entrepreneur-resource-detail' + paginate-by="5" ) @@ -295,7 +301,7 @@ container.block_list.flex.flex_espace widget-description='cs-display-property' widget-fields='hidden-widget' widget-language="hidden-widget" - widget-author="cs-display-property" + widget-author="hidden-widget" widget-format='cs-display-multiple-property' label-format='' multiple-format @@ -304,6 +310,8 @@ container.block_list.flex.flex_espace label-fields='' multiple-fields + next='entrepreneur-resource-detail' + paginate-by="5" ) @@ -347,7 +355,7 @@ container.block_list.flex.flex_espace widget-description='cs-display-property' widget-fields='hidden-widget' widget-language="hidden-widget" - widget-author="cs-display-property" + widget-author="hidden-widget" widget-format='cs-display-multiple-property' label-format='' multiple-format @@ -356,6 +364,8 @@ container.block_list.flex.flex_espace label-fields='' multiple-fields + next='entrepreneur-resource-detail' + paginate-by="5" ) diff --git a/src/includes/mentor/resources/detail.pug b/src/includes/mentor/resources/detail.pug index 08f394178fa52c8f5b9638d97a69f78cd35052f9..8eb75dd70b7d4a9513ea580599fa86b21a633b93 100644 --- a/src/includes/mentor/resources/detail.pug +++ b/src/includes/mentor/resources/detail.pug @@ -8,9 +8,10 @@ include ../../components/widgets sib-display( bind-resources, - fields='name, steps, format, content(preview_image, tags),\ + fields='name, steps, format,\ submitter_info(submitter.account.picture, submitter.name, \ submitter.mentor_profile.organisation.name, skills, uri, broken),\ + content(preview_image, tags),\ description, review.reviewer.account.picture, review.reviewer.name,\ copyright, specifications(\ header_specifications, author, country, language.name,\