Show grants on instance info page

This commit is contained in:
Tom Wiesing 2023-01-03 12:19:10 +01:00
parent 69b6579de7
commit dab7a5c4ae
No known key found for this signature in database
4 changed files with 69 additions and 1 deletions

View file

@ -176,8 +176,9 @@
</div>
</div>
<div class="pure-u-1-1">
<h2 id="wisski">Users</h2>
<h2 id="wisski">(Drupal) Users</h2>
</div>
<div class="pure-u-1">
@ -260,6 +261,47 @@
</div>
</div>
<div class="pure-u-1-1">
<h2 id="distillery">(Distillery) Users</h2>
</div>
<div class="pure-u-1">
<div class="padding">
<div class="overflow">
<table class="pure-table pure-table-bordered">
<thead>
<tr>
<th>
Distillery User
</th>
<th>
WissKI User
</th>
<th>
Admin
</th>
</tr>
</thead>
<tbody>
{{ range $index, $grant := .Info.Grants }}
<tr>
<td>
<code>{{ $grant.User }}</code>
</td>
<td>
<code>{{ $grant.DrupalUsername }}</code>
</td>
<td>
<code>{{ $grant.DrupalAdminRole }}</code>
</td>
</tr>
{{ end }}
</tbody>
</table>
</div>
</div>
</div>
<div class="pure-u-1-1">
<h2 id="wisski">WissKI Data</h2>
</div>