Works almost
This commit is contained in:
33
abac/templates/user_detail.html
Normal file
33
abac/templates/user_detail.html
Normal file
@@ -0,0 +1,33 @@
|
||||
{% extends 'base.html' %}
|
||||
|
||||
{% block content %}
|
||||
<h2>{{ user.username }}'s Attributes</h2>
|
||||
<table class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Attribute Name</th>
|
||||
<th scope="col">Last Modified</th>
|
||||
<th scope="col">Value</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for attribute in attributes %}
|
||||
<tr>
|
||||
<td>{{ attribute.attribute_type.name }}</td>
|
||||
<td>{{ attribute.last_modified|date:"F d, Y H:i" }}</td>
|
||||
<td>
|
||||
{% if not attribute.attribute_type.is_private %}
|
||||
{{ attribute.value }}
|
||||
{% else %}
|
||||
<i>Private</i>
|
||||
{% endif %}
|
||||
</td>
|
||||
</tr>
|
||||
{% empty %}
|
||||
<tr>
|
||||
<td colspan="3">This user has no attributes.</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user