--- a/candolint/uimodules.py Tue Jun 28 22:36:05 2016 +0800
+++ b/candolint/uimodules.py Wed Jun 29 09:00:24 2016 +0800
- def render(self, value):
- datetime = value.isoformat() + 'Z'
- text = value.strftime('%Y-%m-%d %H:%M:%S') + ' UTC'
+ def render(self, value, format_=True):
+ datetime = value.isoformat() + 'Z'
+ text = value.strftime('%Y-%m-%d %H:%M:%S') + ' UTC'
return self.render_string('ui/time.html', datetime=datetime, title=text, text=text)
--- a/templates/check.html Tue Jun 28 22:36:05 2016 +0800
+++ b/templates/check.html Wed Jun 29 09:00:24 2016 +0800
<dd>{{ change.author }}</dd>
- <dd><time>{{ change.date }}</time></dd>
+ <dd>{% module Time(change.date, False) %}</dd>
<dd>{{ change.message }}</dd>
--- a/templates/project.html Tue Jun 28 22:36:05 2016 +0800
+++ b/templates/project.html Wed Jun 29 09:00:24 2016 +0800
<td>{{ change.rev }}:{{ change.node[:12] }} {{ change.branch }}</td>
<div>{{ change.message }}</div>
- <div>{{ change.author }}, <time>{{ change.date }}</time></div>
+ <div>{{ change.author }}, {% module Time(change.date, False) %}</div>
<td>{% module Time(check.started) %}</td>
<td>{% module Time(check.finished) %}</td>