show last process updates run in same line

This commit is contained in:
Laura Klünder 2018-12-16 19:56:19 +01:00
parent 991dedc3ee
commit 3952191708

View file

@ -19,20 +19,20 @@
<h4>{% trans 'Process updates' %}</h4> <h4>{% trans 'Process updates' %}</h4>
<form method="post"> <form method="post">
{% csrf_token %} {% csrf_token %}
{% if auto_process_updates %} <p class="green">
<p class="green">{% trans 'Map updates are currently processed automatically.' %}</p> {% if auto_process_updates %}
{% else %} <span class="green">{% trans 'Map updates are currently processed automatically.' %}</span>
<p>{% trans 'Map updates are currently not processed automatically.' %}</p> {% else %}
{% endif %} {% trans 'Map updates are currently not processed automatically.' %}
{% if last_processed %} {% endif %}
<p> {% if last_processed %}
{% trans 'Last run:' %} {% trans 'Last run:' %}
{% if not last_processed_success %} {% if not last_processed_success %}
<strong class="red">{% trans '(failed)' %}</strong> <strong class="red">{% trans '(failed)' %}</strong>
{% endif %} {% endif %}
{{ last_processed|date:"SHORT_DATETIME_FORMAT" }} {{ last_processed|date:"SHORT_DATETIME_FORMAT" }}
</p> {% endif %}
{% endif %} </p>
<button type="submit" name="process_updates" value="1">{% trans 'Process map updates now' %}</button> <button type="submit" name="process_updates" value="1">{% trans 'Process map updates now' %}</button>
</form> </form>
</div> </div>