mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 14:13:21 +00:00
sas/templates: Improve generation time display
This commit is contained in:
parent
4d36a961db
commit
bf57329bd8
@ -16,7 +16,7 @@
|
|||||||
<a href="{{ url('sas:main') }}">SAS</a> > {{ print_path(album.parent) }} {{ album.get_display_name() }}
|
<a href="{{ url('sas:main') }}">SAS</a> > {{ print_path(album.parent) }} {{ album.get_display_name() }}
|
||||||
<h3>{{ album.get_display_name() }}</h3>
|
<h3>{{ album.get_display_name() }}</h3>
|
||||||
<a href="{{ url('sas:album_edit', album_id=album.id) }}">{% trans %}Edit{% endtrans %}</a><br>
|
<a href="{{ url('sas:album_edit', album_id=album.id) }}">{% trans %}Edit{% endtrans %}</a><br>
|
||||||
{{ timezone.now() }}
|
{% set start = timezone.now() %}
|
||||||
<hr>
|
<hr>
|
||||||
{% set edit_mode = user.can_edit(album) %}
|
{% set edit_mode = user.can_edit(album) %}
|
||||||
{% if edit_mode %}
|
{% if edit_mode %}
|
||||||
@ -85,7 +85,9 @@
|
|||||||
{{ form.as_p() }}
|
{{ form.as_p() }}
|
||||||
<p><input type="submit" value="{% trans %}Upload{% endtrans %}" /></p>
|
<p><input type="submit" value="{% trans %}Upload{% endtrans %}" /></p>
|
||||||
</form>
|
</form>
|
||||||
{{ timezone.now() }}
|
<p style="font-size: small; color: #444;">{% trans %}Template generation time: {% endtrans %}
|
||||||
|
{{ timezone.now() - start }}
|
||||||
|
</p>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
{% block script %}
|
{% block script %}
|
||||||
|
Loading…
Reference in New Issue
Block a user