Skip to content

Commit

Permalink
Merge pull request #256 from lzaoral/hub-fix-user-detail-template
Browse files Browse the repository at this point in the history
hub: fix display of permissions in user details template
  • Loading branch information
rohanpm authored Mar 25, 2024
2 parents 9af6594 + 707bdfa commit d245e0c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions kobo/hub/templates/user/detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ <h3>{% trans 'Details' %}</h3>
</tr>
<tr>
<th>{% trans "Admin" %}</th>
<td>{% if user.is_superuser %}<span class="FREE">YES</span>{% else %}<span class="FAILED">NO</span>{% endif %}</td>
<td>{% if usr.is_superuser %}<span class="FREE">YES</span>{% else %}<span class="FAILED">NO</span>{% endif %}</td>
</tr>
<tr>
<th>{% trans "Staff" %}</th>
<td>{% if user.is_staff %}<span class="FREE">YES</span>{% else %}<span class="FAILED">NO</span>{% endif %}</td>
<td>{% if usr.is_staff %}<span class="FREE">YES</span>{% else %}<span class="FAILED">NO</span>{% endif %}</td>
</tr>
<tr>
<th>{% trans "Active" %}</th>
<td>{% if user.is_active %}<span class="FREE">YES</span>{% else %}<span class="FAILED">NO</span>{% endif %}</td>
<td>{% if usr.is_active %}<span class="FREE">YES</span>{% else %}<span class="FAILED">NO</span>{% endif %}</td>
</tr>
<tr>
<th>{% trans "Tasks" %}</th>
Expand Down

0 comments on commit d245e0c

Please sign in to comment.