Anton Shestakov <av6@dwimlabs.net>, Tue, 14 Jun 2016 13:37:38 +0800
viewer: add check view
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>{{ check.started }}</dd> <dd>{{ 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>{#