mirror of
https://github.com/ae-utbm/sith.git
synced 2026-01-22 02:40:12 +00:00
Migrate permanencies and add user stats view
This commit is contained in:
18
core/templates/core/user_stats.jinja
Normal file
18
core/templates/core/user_stats.jinja
Normal file
@@ -0,0 +1,18 @@
|
||||
{% extends "core/user_base.jinja" %}
|
||||
|
||||
{% block title %}
|
||||
{% trans user_name=profile.get_display_name() %}{{ user_name }}'s stats{% endtrans %}
|
||||
{% endblock %}
|
||||
|
||||
{% block infos %}
|
||||
{% if profile.permanencies %}
|
||||
<div>
|
||||
<h3>Permanencies</h3>
|
||||
<p>
|
||||
{{ total_time }}
|
||||
</p>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endblock %}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user