{% for run in modelruns %} {{ run.id }} {% if run.name %} {{ run.name }} {% else %} - {% endif %} {{ run.started_at }} {% if run.state == 'running' %} {{ run.get_state_display }} {% if run.appears_stuck %} {% endif %} {% elif run.state == 'finished' %} {{ run.get_state_display }} {% elif run.state == 'failed' %} {{ run.get_state_display }} {% elif run.state == 'cancelling' %} {{ run.get_state_display }} {% if run.appears_stuck %} {% endif %} {% elif run.state == 'cancelled' %} {{ run.get_state_display }} {% else %} {{ run.get_state_display }} {% endif %} {% if run.finished_at %} {{ run.finished_at|timeuntil:run.started_at }} {% else %} - {% endif %} View {% if run.state != 'running' and run.state != 'cancelling' %} Delete {% endif %} {% endfor %}