fix: various fixes on community directory
This commit is contained in:
13
src/views/partials/widgets/hubl-communities-edit-button.pug
Normal file
13
src/views/partials/widgets/hubl-communities-edit-button.pug
Normal file
@ -0,0 +1,13 @@
|
||||
if componentSet.has('communities') && getRoute('communities')
|
||||
solid-widget(name='hubl-communities-edit-button')
|
||||
template
|
||||
solid-ac-checker(
|
||||
no-permission='acl:Control'
|
||||
data-src="${src}"
|
||||
)
|
||||
solid-link(
|
||||
class="segment sm-full button text-xsmall text-bold text-uppercase text-center reversed color-secondary bordered icon icon-pencil"
|
||||
data-trans="communities.profile.edit"
|
||||
data-src="${src}"
|
||||
next=`${getRoute('communities', true)}-edit`
|
||||
)
|
@ -1,4 +1,4 @@
|
||||
if componentSet.has('communities')
|
||||
if componentSet.has('communities') && getRoute('communities')
|
||||
solid-widget(name='hubl-communities-edit-email')
|
||||
template
|
||||
label(class="text-small text-semibold text-uppercase text-color-heading" data-trans="communities.edit.labelEmail")
|
||||
|
@ -1,4 +1,4 @@
|
||||
if componentSet.has('communities')
|
||||
if componentSet.has('communities') && getRoute('communities')
|
||||
solid-widget(name='hubl-communities-edit-website')
|
||||
template
|
||||
label(class="text-small text-semibold text-uppercase text-color-heading" data-trans='communities.edit.labelWebsite')
|
||||
|
@ -1,3 +1,3 @@
|
||||
if componentSet.has('communities')
|
||||
if componentSet.has('communities') && getRoute('communities')
|
||||
solid-widget(name='hubl-communities-logo')
|
||||
template ${value != "" ? `<div \style="background-image:url(${value});" />` : `<div></div>`}
|
||||
|
@ -1,4 +1,4 @@
|
||||
if componentSet.has('communities')
|
||||
if componentSet.has('communities') && getRoute('communities')
|
||||
solid-widget(name='hubl-communities-profile-address')
|
||||
template
|
||||
| ${await value != "" ? `<span class="icon mdi-map-marker icon-third icon-large icon-margin-right-xsmall">\${await value.adress_line1}<br>\${await value.adress_line2}</span>` : `<span></span>`}
|
||||
| ${await value.adress_line1 != "" ? `<span class="icon mdi-map-marker icon-third icon-large icon-margin-right-xsmall">\${await value.adress_line1}<br>\${await value.adress_line2 || ""}</span>` : ""}
|
||||
|
@ -1,3 +1,3 @@
|
||||
if componentSet.has('communities')
|
||||
if componentSet.has('communities') && getRoute('communities')
|
||||
solid-widget(name='hubl-communities-profile-email')
|
||||
template ${value != "" ? `<a class="link margin-bottom-xsmall icon mdi-email-outline icon-third icon-large icon-margin-right-xsmall" href="mailto:\${value}">\$value</a>` : `<span></span>`}
|
||||
template ${value != "" ? `<a class="link margin-bottom-xsmall icon mdi-email-outline icon-third icon-large icon-margin-right-xsmall" href="mailto:\${value}">${value}</a>` : ""}
|
||||
|
@ -1,3 +1,3 @@
|
||||
if componentSet.has('communities')
|
||||
if componentSet.has('communities') && getRoute('communities')
|
||||
solid-widget(name='hubl-communities-profile-facebook')
|
||||
template ${value != "" ? `<a class="segment children-link-rounded children-icon-social-facebook children-link-reversed color-secondary bordered margin-right-medium" href="${value}" target="_blank"><span></span></a>` : `<span></span>`}
|
||||
template ${value != "" ? `<a class="segment children-link-rounded children-icon-social-facebook children-link-reversed color-secondary bordered margin-right-medium" href="${value}" target="_blank"><span></span></a>` : ""}
|
||||
|
@ -1,3 +1,3 @@
|
||||
if componentSet.has('communities')
|
||||
if componentSet.has('communities') && getRoute('communities')
|
||||
solid-widget(name='hubl-communities-profile-instagram')
|
||||
template ${value != "" ? `<a class="segment children-link-rounded children-icon-social-instagram children-link-reversed color-secondary bordered" href="${value}" target="_blank"><span></span></a>` : `<span></span>`}
|
||||
template ${value != "" ? `<a class="segment children-link-rounded children-icon-social-instagram children-link-reversed color-secondary bordered" href="${value}" target="_blank"><span></span></a>` : ""}
|
||||
|
@ -1,3 +1,3 @@
|
||||
if componentSet.has('communities')
|
||||
if componentSet.has('communities') && getRoute('communities')
|
||||
solid-widget(name='hubl-communities-profile-linkedin')
|
||||
template ${value != "" ? `<a class="segment children-link-rounded children-icon-social-linkedin children-link-reversed color-secondary bordered margin-right-medium" href="${value}" target="_blank"><span></span></a>` : `<span></span>`}
|
||||
template ${value != "" ? `<a class="segment children-link-rounded children-icon-social-linkedin children-link-reversed color-secondary bordered margin-right-medium" href="${value}" target="_blank"><span></span></a>` : ""}
|
||||
|
@ -1,3 +1,3 @@
|
||||
if componentSet.has('communities')
|
||||
if componentSet.has('communities') && getRoute('communities')
|
||||
solid-widget(name='hubl-communities-profile-logo')
|
||||
template ${value != "" ? `<div \style="background-image:url(${value});" />` : `<div></div>`}
|
||||
template ${value != "" ? `<div \style="background-image:url(${value});" />` : ""}
|
@ -1,4 +1,4 @@
|
||||
if componentSet.has('communities')
|
||||
if componentSet.has('communities') && getRoute('communities')
|
||||
solid-widget(name='hubl-communities-profile-members-counter')
|
||||
template
|
||||
p
|
||||
|
@ -1,3 +1,3 @@
|
||||
if componentSet.has('communities')
|
||||
if componentSet.has('communities') && getRoute('communities')
|
||||
solid-widget(name='hubl-communities-profile-phone')
|
||||
template ${value != "" ? `<a class="link margin-bottom-xsmall icon mdi-cellphone-iphone icon-third icon-large icon-margin-right-xsmall" href="tel:\${value}">\$value</a>` : `<span></span>`}
|
||||
template ${value != "" ? `<a class="link margin-bottom-xsmall icon mdi-cellphone-iphone icon-third icon-large icon-margin-right-xsmall" href="tel:\${value}">${value}</a>` : ""}
|
||||
|
@ -1,3 +1,3 @@
|
||||
if componentSet.has('communities')
|
||||
if componentSet.has('communities') && getRoute('communities')
|
||||
solid-widget(name='hubl-communities-profile-picture')
|
||||
template ${value != "" ? `<div \style="background-image:url(${value});" />` : `<div class="picture-empty"><object type="image/svg+xml" data="/images/photos.svg"></object></div>`}
|
||||
|
@ -1,3 +1,3 @@
|
||||
if componentSet.has('communities')
|
||||
if componentSet.has('communities') && getRoute('communities')
|
||||
solid-widget(name='hubl-communities-profile-twitter')
|
||||
template ${value != "" ? `<a class="segment children-link-rounded children-icon-social-twitter children-link-reversed color-secondary bordered margin-right-medium" href="${value}" target="_blank"><span></span></a>` : `<span></span>`}
|
||||
template ${value != "" ? `<a class="segment children-link-rounded children-icon-social-twitter children-link-reversed color-secondary bordered margin-right-medium" href="${value}" target="_blank"><span></span></a>` : ""}
|
||||
|
@ -1,3 +1,3 @@
|
||||
if componentSet.has('communities')
|
||||
if componentSet.has('communities') && getRoute('communities')
|
||||
solid-widget(name='hubl-communities-profile-website')
|
||||
template ${value != "" ? `<a class="link margin-bottom-xsmall icon mdi-link-variant icon-third icon-large icon-margin-right-xsmall" href="tel:\${value}" target="_blank">$value</a>` : `<span></span>`}
|
||||
template ${value != "" ? `<a class="link margin-bottom-xsmall icon mdi-link-variant icon-third icon-large icon-margin-right-xsmall" href="tel:\${value}" target="_blank">${value}</a>` : ""}
|
||||
|
Reference in New Issue
Block a user