Download:
child 271:f9cdd8aabcea
parent 269:f7bed0a8edef
270:9842fdf0d791
Anton Shestakov <av6@dwimlabs.net>, Sat, 22 Jul 2017 12:50:58 +0800
viewer: show check results in plain text in the details list

1 файлов изменено, 9 вставок(+), 8 удалений(-) [+]
templates/check.html file | annotate | diff | comparison | revisions
--- a/templates/check.html Sat Jul 22 12:35:06 2017 +0800
+++ b/templates/check.html Sat Jul 22 12:50:58 2017 +0800
@@ -8,14 +8,6 @@
{% module Template('ui/project-link.html', project=project) %}
· check #{{ check.ordinal }}
</h2>
- <h3>
- {% if check.success %}
- {{ locale.translate('{} error', '{} errors', check.errors).format(check.errors) }},
- {{ locale.translate('{} warning', '{} warnings', check.warnings).format(check.warnings) }}
- {% else %}
- Job failed.
- {% end %}
- </h3>
<div class="uk-grid">
<div class="uk-width-medium-1-3">
<dl class="uk-description-list-horizontal list-terse">
@@ -25,6 +17,15 @@
<dd>{% module Time(check.finished) %}</dd>
<dt>Duration:</dt>
<dd>{{ check.get_duration() }}</dd>
+ <dt>Result:</dt>
+ <dd>
+ {% if check.success %}
+ {{ locale.translate('{} error', '{} errors', check.errors).format(check.errors) }},
+ {{ locale.translate('{} warning', '{} warnings', check.warnings).format(check.warnings) }}
+ {% else %}
+ job failed
+ {% end %}
+ </dd>
<dt>Other formats:</dt>
<dd><a href="{{ project.get_url() }}/{{ check.ordinal }}/raw">raw</a></dd>
</dl>