feat: add circles display

This commit is contained in:
Christophe Henry 2019-10-25 15:38:35 +02:00
parent af0db1462e
commit fc7732b1b9

View File

@ -1,9 +1,32 @@
h1 Circles
sib-widget(name='template-admin-circle')
template
sib-display(
fields='name'
bind-resources
)
sib-display(
data-src='${await value.owner}'
fields='account.picture, sup(name)'
widget-account.picture='hd-user-avatar'
)
sib-display(
fields='team'
bind-resources
)
div
//- Search a circle
sib-display(
div.table-header
div.cell Name
div.cell Admins
div.cell Join
sib-display.table-body(
data-src=`${endpoints.circles}`
fields='name, owner.username'
fields='circles(name, team, owner)'
multiple-circles
widget-circles='template-admin-circle'
)