Download:
child 216:f679f272fe10
parent 214:1f169334834b
215:7716c8ee7c85
Anton Shestakov <av6@dwimlabs.net>, Tue, 23 Aug 2016 21:37:18 +0800
viewer: use SelectQuery.first() to get the last check or None

1 файлов изменено, 3 вставок(+), 2 удалений(-) [+]
templates/project.html file | annotate | diff | comparison | revisions
--- a/templates/project.html Tue Aug 23 15:04:33 2016 +0800
+++ b/templates/project.html Tue Aug 23 21:37:18 2016 +0800
@@ -10,9 +10,10 @@
<dl class="uk-description-list-horizontal list-terse">
<dt>Clone URL:</dt>
<dd>{{ project.url }}</dd>
- {% if checks %}
+ {% set last = checks.first() %}
+ {% if last %}
<dt>Last check:</dt>
- <dd>{% module Time(checks[0].finished) %}</dd>
+ <dd>{% module Time(last.finished) %}</dd>
{% end %}
</dl>
<table class="uk-table uk-table-middle uk-text-nowrap">