You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.0 KiB
HTML

1 year ago
{% 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 %}