Skip to content
Snippets Groups Projects

Výsledkovka pomocí mo.web.table

Closed Jiří Setnička requested to merge jirka/table into master
3 files
+ 56
0
Compare changes
  • Side-by-side
  • Inline
Files
3
+ 33
0
{% extends "base.html" %}
{% block head %}
<meta http-equiv=refresh content=30>
{% endblock %}
{% block body %}
<h2>Dávka #{{ job.job_id }}</h2>
<table class=data>
<tr><th>Název<td>{{ job.description }}
<tr><th>Vlastník<td>{{ job.user.full_name() }}
<tr><th>Stav<td>{{ job.state.friendly_name() }}
<tr><th>Zpráva<td>{{ job.result|or_dash }}
<tr><th>Vytvořena<td>{{ job.created_at|time_and_timedelta }}
<tr><th>Dokončena<td>{{ job.finished_at|time_and_timedelta }}
<tr><th>Vyprší<td>{{ job.expires_at|time_and_timedelta }}
</table>
{% if has_errors %}
<h3>Chyby</h3>
<pre><div class="alert alert-danger" role="alert">{{ "" -}}
{% for e in job.out_json['errors'] %}
{{ e }}
{% endfor %}
</div></pre>
{% endif %}
{% if job.out_file %}
<a class='btn btn-xs btn-primary' href='{{ url_for('org_job_output', id=job.job_id) }}'>Stáhnout výstup</a>
{% endif %}
{% endblock %}
Loading