{% extends "base.html" %} {% import "_base.html" as _base %} {% block content %} {% block title %}{% endblock %} {% block source %}{% endblock %}

{{ _base.volatile_labels(volatile, compact=False) }}

{% if volatile['proclog'] %} {%- if volatile['last_status'] != 'error' %} {% trans %}Show update log{% endtrans %}
{% else %}
{% trans %}Update log{% endtrans %} {% endif %}
{% for ts, msg in volatile['proclog'] %}
{{ ts|timestampformat(format='YYYY-MM-dd HH:mm:ss.SSSSSS') }}
{{ msg }}
{% endfor %}
{% endif %}
{% if volatile['utime'] -%}
{% trans %}Last modified{% endtrans %}
{{ _base.when(volatile['mtime']) }} {{ ngettext('(%(times)d time since creation or edit)', '(%(times)d times since creation or edit)', volatile['mcount'], times=volatile['mcount']) }}
{%- endif %}
{% trans %}Last successfull calculation{% endtrans %}
{% if volatile['utime'] -%} {{ _base.when(volatile['utime']) }} {{ ngettext('(%(times)d time since creation or edit)', '(%(times)d times since creation or edit)', volatile['ucount'], times=volatile['ucount']) }} {% else %} {% trans -%}Never happened since creation or edit{%- endtrans %} {%- endif %}
{% if volatile['ttime'] and volatile['ttime'] != volatile['utime'] -%}
{% trans %}Last attempt to calculate performed{% endtrans %}
{{ _base.when(volatile['ttime']) }} {%- with times_since_creation=ngettext('%(times)d time since creation or edit', '%(times)d times since creation or edit', volatile['tcount'], times=volatile['tcount']), postpone_count=ngettext('of which last %(pcount)d was unseccessfull', 'of which last %(pcount)d were unseccessfull', volatile.get('pcount', 0), pcount=volatile.get('pcount', 0)) -%} {% if volatile.get('pcount', 0) == 0 -%} {% trans %}({{ times_since_creation }}){% endtrans %} {% elif volatile['pcount'] == volatile['tcount'] -%} {% trans %}({{ times_since_creation }}, all those attempts were unseccessfull){% endtrans %} {% else %} {% trans %}({{ times_since_creation }}, {{ postpone_count }}){% endtrans %} {% endif -%} {% endwith -%}
{%- endif %} {% if volatile['ecount'] -%}
{% trans %}Last calculations{% endtrans %}
{{ ngettext('%(num)d failed due to error', '%(num)d failed due to error', volatile['ecount']) }}
{%- endif %} {% if not volatile['locked'] -%}
{% trans %}Next calculation{% endtrans %}
{% if volatile['etime'] is not in_the_past -%} {% trans when=_base.when(volatile['etime'])|lower -%} Should start {{ when }} {%- endtrans %} {% else -%} {% trans when=_base.when(volatile['etime']) -%} Should have started {{ when }} {%- endtrans %} {% endif -%}
{% endif -%}
{% trans %}Show raw status{% endtrans %} {% endblock %}