Anton Shestakov <av6@dwimlabs.net>, Wed, 15 Jun 2016 15:55:13 +0800
viewer: use moment.js for relative time
templates/check.html
Permissions: -rw-r--r--
{% extends "base.html" %} {% block title %}Check #
{{ check.ordinal }}{% end %} <div class="uk-container uk-container-center uk-margin-large-top"> <h2>{{ project.name }}: check #
{{ check.ordinal }}</h2> {{ locale.translate('{} error', '{} errors', check.errors).format(check.errors) }},
{{ locale.translate('{} warning', '{} warnings', check.warnings).format(check.warnings) }} <div class="uk-width-medium-1-3"> <dl class="uk-description-list-horizontal list-terse"> <dd>{% module Time(value=check.started) %}</dd> <dd>{% module Time(value=check.finished) %}</dd> <dd>{{ check.finished - check.started }}</dd> <div class="uk-width-medium-2-3"> <dl class="uk-description-list-horizontal list-terse"> {% set change = check.change %} <dd>{{ change.rev }}:
{{ change.node[:12] }} {{ change.branch }}</dd> <dd>{{ change.author }}</dd> <dd><time>{{ change.date }}</time></dd> <dd>{{ change.message }}</dd> <pre class="check-log">{# #}{% for number, (cls, line) in enumerate(lines, 1) %}{# #}<div id="l{{ number }}"{% if cls %} class="{{ cls }}"{% end %}>{# #}<a href="#l{{ number }}" data-line-number="{{ number }}"></a>{#