Skip to content
Snippets Groups Projects
Verified Commit 35ee923f authored by nd's avatar nd
Browse files

condense user list, display user roles. See #53

parent c34c8b51
No related branches found
No related tags found
No related merge requests found
...@@ -9,6 +9,7 @@ ...@@ -9,6 +9,7 @@
<th scope="col">uid</th> <th scope="col">uid</th>
<th scope="col">login name</th> <th scope="col">login name</th>
<th scope="col">display name</th> <th scope="col">display name</th>
<th scope="col">roles</th>
<th scope="col"> <th scope="col">
<p class="text-right"> <p class="text-right">
<a class="btn btn-primary" href="{{ url_for("user.show") }}"> <a class="btn btn-primary" href="{{ url_for("user.show") }}">
...@@ -36,8 +37,13 @@ ...@@ -36,8 +37,13 @@
{{ user.displayname }} {{ user.displayname }}
</td> </td>
<td> <td>
<p class="text-right"> {% for role in user.roles %}
<a href="{{ url_for("user.show", uid=user.uid) }}" class="btn btn-primary"> <a href="{{ url_for("role.show", roleid=role.id) }}">{{ role.name }}</a>{% if not loop.last %}, {% endif %}
{% endfor %}
</td>
<td>
<p class="text-right m-0">
<a href="{{ url_for("user.show", uid=user.uid) }}" class="btn btn-primary btn-sm">
<i class="fa fa-edit" aria-hidden="true"></i> Edit <i class="fa fa-edit" aria-hidden="true"></i> Edit
</a> </a>
</p> </p>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment