aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-12-17 15:01:25 +0100
committerMario <mario@mariovavti.com>2021-12-17 15:01:25 +0100
commit91cea1f28a8734f3fbab38260cc301026df7b56b (patch)
treec08100c6373f7ff78075f48e7544debdca660129
parent220ed35f5855f22344d7a815da9bb1f6c96f1002 (diff)
downloadvolse-hubzilla-91cea1f28a8734f3fbab38260cc301026df7b56b.tar.gz
volse-hubzilla-91cea1f28a8734f3fbab38260cc301026df7b56b.tar.bz2
volse-hubzilla-91cea1f28a8734f3fbab38260cc301026df7b56b.zip
add template
-rw-r--r--view/tpl/permcats_widget.tpl27
1 files changed, 27 insertions, 0 deletions
diff --git a/view/tpl/permcats_widget.tpl b/view/tpl/permcats_widget.tpl
new file mode 100644
index 000000000..a7ebd91ba
--- /dev/null
+++ b/view/tpl/permcats_widget.tpl
@@ -0,0 +1,27 @@
+<div class="widget">
+ <h3>{{$roles_label}}</h3>
+ <ul class="nav nav-pills flex-column">
+ {{foreach $roles as $role}}
+ <li class="nav-item">
+ <a class="nav-link{{if $role.active}} active{{/if}}" href="{{$role.url}}">
+ {{$role.name}}
+ </a>
+ </li>
+ {{/foreach}}
+ </ul>
+</div>
+
+{{if $members}}
+<div class="widget">
+ <h3>{{$members_label}}</h3>
+ <div class="border rounded overflow-auto" style="height: 19rem;">
+ {{foreach $members as $member}}
+ <a href="{{$member.url}}" class="lh-sm border-bottom p-2 d-block text-truncate">
+ <img src="{{$member.photo}}" class="float-start rounded me-2" style="height: 2.2rem; width: 2.2rem;" loading="lazy">
+ {{$member.name}}<br>
+ <span class="text-muted small">{{$member.addr}}</span>
+ </a>
+ {{/foreach}}
+ </div>
+</div>
+{{/if}}