sas/templates: Improve generation time display

This commit is contained in:
Skia 2018-04-18 23:49:12 +02:00
parent 4d36a961db
commit bf57329bd8

View File

@ -16,7 +16,7 @@
<a href="{{ url('sas:main') }}">SAS</a> > {{ print_path(album.parent) }} {{ album.get_display_name() }}
<h3>{{ album.get_display_name() }}</h3>
<a href="{{ url('sas:album_edit', album_id=album.id) }}">{% trans %}Edit{% endtrans %}</a><br>
{{ timezone.now() }}
{% set start = timezone.now() %}
<hr>
{% set edit_mode = user.can_edit(album) %}
{% if edit_mode %}
@ -85,7 +85,9 @@
{{ form.as_p() }}
<p><input type="submit" value="{% trans %}Upload{% endtrans %}" /></p>
</form>
{{ timezone.now() }}
<p style="font-size: small; color: #444;">{% trans %}Template generation time: {% endtrans %}
{{ timezone.now() - start }}
</p>
{% endblock %}
{% block script %}