17:ba794747cbdc
Anton Shestakov <av6@dwimlabs.net>, Wed, 15 Jun 2016 15:55:13 +0800
viewer: use moment.js for relative time

next change 25:52cac2f85af5
previous change 16:784e5bd0fcba

templates/check.html

Permissions: -rw-r--r--

Other formats: Feeds:
{% extends "base.html" %}
{% block title %}Check #{{ check.ordinal }}{% end %}
{% block content %}
<div class="uk-container uk-container-center uk-margin-large-top">
<h2>{{ project.name }}: check #{{ check.ordinal }}</h2>
<p>
{% if check.success %}
{{ locale.translate('{} error', '{} errors', check.errors).format(check.errors) }},
{{ locale.translate('{} warning', '{} warnings', check.warnings).format(check.warnings) }}
{% else %}
Job failed.
{% end %}
</p>
<div class="uk-grid">
<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>
<dt>Finished:</dt>
<dd>{% module Time(value=check.finished) %}</dd>
<dt>Duration:</dt>
<dd>{{ check.finished - check.started }}</dd>
</dl>
</div>
<div class="uk-width-medium-2-3">
<dl class="uk-description-list-horizontal list-terse">
{% set change = check.change %}
<dt>Commit:</dt>
<dd>{{ change.rev }}:{{ change.node[:12] }} {{ change.branch }}</dd>
<dt>Author:</dt>
<dd>{{ change.author }}</dd>
<dt>Date:</dt>
<dd><time>{{ change.date }}</time></dd>
<dt>Description:</dt>
<dd>{{ change.message }}</dd>
</dl>
</div>
</div>
<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>{#
#}{{ line }}{#
#}</div>{#
#}{% end %}{#
#}</pre>
</div>
{% end %}