timetracker/accounts/templates/accounts/account_detail.html
2021-02-06 09:07:47 -07:00

21 lines
604 B
HTML

{% extends 'application.html' %}
{% load timedelta_filter %}
{% block content %}
<section class="panel">
<h1>{{ user.first_name }} {{ user.last_name }}</h1>
<p>{{ user.email }}</p>
{% if user.student %}
<p>{{ user.student.department }}</p>
{% elif user.instructor %}
<p>{{ user.instructor.department }}</p>
{% endif %}
{% if periods %}
<p>Total clocked hours: <strong>{{ periods.total|timedelta_format }}</strong></p>
{% endif %}
<p>
<a href="{% url 'account-update' user.id %}">Update email/change password</a>
</p>
</section>
{% endblock %}