From 425ffa903a6a0fee3986b7b9e0f8e966b720918d Mon Sep 17 00:00:00 2001 From: Alice <alice.poggioli@hotmail.fr> Date: Wed, 13 May 2020 18:19:15 +0200 Subject: [PATCH 1/2] fix access render --- src/includes/components/widgets.pug | 6 ++++++ src/includes/mentor/resources/detail.pug | 2 +- src/styles/index.scss | 4 +++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/includes/components/widgets.pug b/src/includes/components/widgets.pug index 2294e3f8..c9e1809a 100644 --- a/src/includes/components/widgets.pug +++ b/src/includes/components/widgets.pug @@ -252,3 +252,9 @@ sib-widget(name="cs-display-email-button") sib-widget(name="iframe-video-resource") template div ${value} + +sib-widget(name="cs-display-sharing") + template + p #[b ${label}] ${await value == 'https://api-staging.coopstarter.happy-dev.fr/sharingcriterias/3/' ? `public` : (await value == 'https://api-staging.coopstarter.happy-dev.fr/sharingcriterias/1/' ? `private` : `organisation` ) } + + \ No newline at end of file diff --git a/src/includes/mentor/resources/detail.pug b/src/includes/mentor/resources/detail.pug index 3b41adca..566d5ec6 100644 --- a/src/includes/mentor/resources/detail.pug +++ b/src/includes/mentor/resources/detail.pug @@ -26,7 +26,7 @@ sib-display#detail-mentor( widget-description='cs-display-property' widget-name='cs-display-property' widget-publication_year='cs-display-resource-property' - widget-sharing='cs-display-resource-property' + widget-sharing='cs-display-sharing' widget-language.name='cs-display-resource-property' widget-submitter.account.picture='cs-account-picture' widget-broken='cs-broken-action' diff --git a/src/styles/index.scss b/src/styles/index.scss index 1d4508ba..301dea47 100644 --- a/src/styles/index.scss +++ b/src/styles/index.scss @@ -1754,6 +1754,7 @@ div#entrepreneur-resource-detail cs-display-property[name="name"].title_form p { } sib-set-default[name="specifications"]>cs-display-resource-property, +sib-set-default[name="specifications"]>cs-display-sharing, sib-set-default[name="specifications"]>sib-multiple{ display: block; float: left; @@ -2269,9 +2270,10 @@ b, strong { sib-set-default[name="specifications"]{ flex-direction: column; } - sib-set-default[name="specifications"] > cs-display-resource-property, sib-set-default[name="specifications"] > sib-multiple{ + sib-set-default[name="specifications"] > cs-display-resource-property, sib-set-default[name="specifications"] > cs-display-sharing, sib-set-default[name="specifications"] > sib-multiple{ width: 100%; } + #confirm_suppress > div{ width: 80%; } -- GitLab From 1a9690824081aa593af4ef1f9e9be72e8c8a5723 Mon Sep 17 00:00:00 2001 From: Alice <alice.poggioli@hotmail.fr> Date: Thu, 14 May 2020 09:03:36 +0200 Subject: [PATCH 2/2] sharing render fix --- src/includes/entrepreneur/resources/detail.pug | 2 +- src/includes/public/resources/detail.pug | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/includes/entrepreneur/resources/detail.pug b/src/includes/entrepreneur/resources/detail.pug index 3ea3fbcb..c18d05ca 100644 --- a/src/includes/entrepreneur/resources/detail.pug +++ b/src/includes/entrepreneur/resources/detail.pug @@ -34,7 +34,7 @@ widget-description='cs-display-property' widget-name='cs-display-property' widget-publication_year='cs-display-resource-property' - widget-sharing='cs-display-resource-property' + widget-sharing='cs-display-sharing' widget-language.name='cs-display-resource-property' widget-submitter.account.picture='cs-account-picture' widget-broken='cs-broken-action' diff --git a/src/includes/public/resources/detail.pug b/src/includes/public/resources/detail.pug index 5673177a..b529bed5 100644 --- a/src/includes/public/resources/detail.pug +++ b/src/includes/public/resources/detail.pug @@ -35,7 +35,7 @@ widget-description='cs-display-property' widget-name='cs-display-property' widget-publication_year='cs-display-resource-property' - widget-sharing='cs-display-resource-property' + widget-sharing='cs-display-sharing' widget-language.name='cs-display-resource-property' widget-submitter.account.picture='cs-account-picture' widget-broken='cs-broken-action' -- GitLab