Download:
child 34:0a5f37c8562d
parent 32:68e9ae59bce0
33:640477d35e0b
Anton Shestakov <av6@dwimlabs.net>, Fri, 17 Jun 2016 19:09:13 +0800
viewer: don't show last check date if there are no checks

1 файлов изменено, 4 вставок(+), 2 удалений(-) [+]
templates/project.html file | annotate | diff | comparison | revisions
--- a/templates/project.html Fri Jun 17 18:29:21 2016 +0800
+++ b/templates/project.html Fri Jun 17 19:09:13 2016 +0800
@@ -7,8 +7,10 @@
<h2>{{ project.name }}</h2>
<img src="{{ project.get_url() }}/status.svg" alt="Lint Status">
<dl class="uk-description-list-horizontal list-terse">
- <dt>Last check:</dt>
- <dd>{% module Time(checks[0].finished) %}</dd>
+ {% if checks %}
+ <dt>Last check:</dt>
+ <dd>{% module Time(checks[0].finished) %}</dd>
+ {% end %}
<dt>Clone URL:</dt>
<dd>{{ project.url }}</dd>
</dl>