Skip to content

Commit

Permalink
Merge pull request #100 from molgen/show-groups-in-userlist
Browse files Browse the repository at this point in the history
Show groups in user list
  • Loading branch information
donald authored Sep 18, 2020
2 parents f60a548 + fb085be commit 99185c0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mpicms/templates/wagtailusers/users/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
{% endif %}
</th>
<th class="level">{% trans "Level" %}</th>
<th class="level">{% trans "Groups" %}</th>
<th class="status">{% trans "Status" %}</th>
<th class="last-login">{% trans "Last Login" %}</th>
</tr>
Expand All @@ -43,6 +44,7 @@
</td>
<td class="username" valign="top">{{ user.get_username }}</td>
<td class="level" valign="top">{% if user.is_superuser %}{% trans "Admin" %}{% endif %}</td>
<td>{{ user.groups.all | join:"," }}</td>
<td class="status" valign="top"><div class="status-tag {% if user.is_active %}primary{% endif %}">{% if user.is_active %}{% trans "Active" %}{% else %}{% trans "Inactive" %}{% endif %}</div></td>
<td {% if user.last_login %} class="human-readable-date" title="{{ user.last_login|date:"d M Y H:i" }}"{% endif %}>{% if user.last_login %}{% blocktrans with time_period=user.last_login|timesince %}{{ time_period }} ago{% endblocktrans %}{% endif %}</td>
</tr>
Expand Down

0 comments on commit 99185c0

Please sign in to comment.