From fc7732b1b98711c06f9f45f0cc46eb5acfa62a63 Mon Sep 17 00:00:00 2001 From: Christophe Henry Date: Fri, 25 Oct 2019 15:38:35 +0200 Subject: [PATCH] feat: add circles display --- src/page-circle-admin.pug | 27 +++++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/src/page-circle-admin.pug b/src/page-circle-admin.pug index f13b5b2..43ae78d 100644 --- a/src/page-circle-admin.pug +++ b/src/page-circle-admin.pug @@ -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' ) \ No newline at end of file