Download:
child 26:8c1ce7d12350
parent 24:16c6f6907c16
25:52cac2f85af5
Anton Shestakov <av6@dwimlabs.net>, Wed, 15 Jun 2016 22:20:45 +0800
viewer: the two existing UI modules can just use positional arguments

3 файлов изменено, 8 вставок(+), 8 удалений(-) [+]
templates/check.html file | annotate | diff | comparison | revisions
templates/index.html file | annotate | diff | comparison | revisions
templates/project.html file | annotate | diff | comparison | revisions
--- a/templates/check.html Wed Jun 15 22:13:58 2016 +0800
+++ b/templates/check.html Wed Jun 15 22:20:45 2016 +0800
@@ -17,9 +17,9 @@
<div class="uk-width-medium-1-3">
<dl class="uk-description-list-horizontal list-terse">
<dt>Started:</dt>
- <dd>{% module Time(value=check.started) %}</dd>
+ <dd>{% module Time(check.started) %}</dd>
<dt>Finished:</dt>
- <dd>{% module Time(value=check.finished) %}</dd>
+ <dd>{% module Time(check.finished) %}</dd>
<dt>Duration:</dt>
<dd>{{ check.finished - check.started }}</dd>
</dl>
--- a/templates/index.html Wed Jun 15 22:13:58 2016 +0800
+++ b/templates/index.html Wed Jun 15 22:20:45 2016 +0800
@@ -11,7 +11,7 @@
{% set project = check.project %}
{% set change = check.change %}
<tr>
- <td>{% module Badges(check=check) %}</td>
+ <td>{% module Badges(check) %}</td>
<td>
<a href="/{{ project.domain }}/{{ project.user or '-' }}/{{ project.name }}/{{ check.ordinal }}">
#{{ check.ordinal }}
@@ -23,8 +23,8 @@
</a>
</td>
<td>{{ change.rev }}:{{ change.node[:12] }} {{ change.branch }}</td>
- <td>{% module Time(value=check.started) %}</td>
- <td>{% module Time(value=check.finished) %}</td>
+ <td>{% module Time(check.started) %}</td>
+ <td>{% module Time(check.finished) %}</td>
<td>{{ check.finished - check.started }}</td>
</tr>
{% end %}
--- a/templates/project.html Wed Jun 15 22:13:58 2016 +0800
+++ b/templates/project.html Wed Jun 15 22:20:45 2016 +0800
@@ -16,7 +16,7 @@
{% for check in checks %}
{% set change = check.change %}
<tr>
- <td>{% module Badges(check=check) %}</td>
+ <td>{% module Badges(check) %}</td>
<td>
<a href="/{{ project.domain }}/{{ project.user or '-' }}/{{ project.name }}/{{ check.ordinal }}">
#{{ check.ordinal }}
@@ -27,8 +27,8 @@
<div>{{ change.message }}</div>
<div>{{ change.author }}, <time>{{ change.date }}</time></div>
</td>
- <td>{% module Time(value=check.started) %}</td>
- <td>{% module Time(value=check.finished) %}</td>
+ <td>{% module Time(check.started) %}</td>
+ <td>{% module Time(check.finished) %}</td>
<td>{{ check.finished - check.started }}</td>
</tr>
{% end %}