patch: list - display + styles (wip)

This commit is contained in:
gaelle morin
2021-04-04 17:42:24 +02:00
parent 0a86dc2536
commit 874f94a1e2
9 changed files with 77 additions and 8 deletions

View File

@ -0,0 +1,12 @@
if componentSet.has('admin') && componentSet.has('communities')
solid-widget(name='hubl-communities-counter-alternate')
template
div
span.icon.icon-people.icon-third.icon-large.margin-right-xsmall
solid-display(
fields=''
data-src="${src || value}"
nested-field="members"
counter-template="\\\${counter}"
)
span members

View File

@ -0,0 +1,3 @@
if componentSet.has('admin') && componentSet.has('communities')
solid-widget(name='hubl-communities-logo')
template ${value != "" ? `<div \style="background-image:url(${value});" />` : `<div></div>`}

View File

@ -0,0 +1,18 @@
if componentSet.has('admin') && componentSet.has('communities')
solid-widget(name='hubl-communities-name-title')
template
div.segment.block.one-line-ellipsis(
title="\${value}"
) ${value}
solid-widget(name='hubl-communities-name')
template
solid-link(
data-src="${src || value}"
next=``
)
solid-display(
data-src="${src || value}"
fields="name"
widget-name="hubl-communities-name-title"
)