282:99b534a9b1f5
Anton Shestakov <av6@dwimlabs.net>, Tue, 22 Aug 2017 14:24:58 +0800
docs: more words about configuration

next change 289:622eaacee683
previous change 277:6777a5c2acad

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>
{% module Template('ui/project-link.html', project=project) %}
<span class="uk-text-nowrap">· check #{{ check.ordinal }}</span>
</h2>
<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(check.started) %}</dd>
<dt>Finished:</dt>
<dd>{% module Time(check.finished) %}</dd>
<dt>Duration:</dt>
<dd>{{ check.get_duration() }}</dd>
<dt>Result:</dt>
<dd>
{% 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 %}
</dd>
<dt>Other formats:</dt>
<dd><a href="{{ project.get_url() }}/{{ check.ordinal }}/raw">raw</a></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><a href="{{ adapter.get_commit_url(change) }}">{% if change.rev is not None %}{{ change.rev }}:{% end %}{{ change.node[:12] }}</a></dd>
<dt>Branch:</dt>
<dd><a href="{{ adapter.get_branch_url(change) }}">{{ change.branch }}</a></dd>
<dt>Author:</dt>
<dd>{{ change.author }}</dd>
<dt>Date:</dt>
<dd>{% module Time(change.date, False) %}</dd>
<dt>Description:</dt>
<dd>{{ change.message }}</dd>
</dl>
</div>
</div>
<pre class="check-log">{#
#}{% for number, line in enumerate(lines, 1) %}{#
#}<div id="l{{ number }}"{% if 'task' in line %} data-task="{{ line['task'] }}"{% end %}{% if 'cls' in line %} class="{{ line['cls'] }}"{% end %}>{#
#}<a href="#l{{ number }}" class="lineno" data-line-number="{{ number }}"></a>{#
#}{% if 'link' in line %}{#
#}{{ line['text'][:line['link_start']] }}{#
#}<a href="{{ line['link'] }}" class="filelink">{#
#}{{ line['text'][line['link_start']:line['link_end']] }}{#
#}</a>{#
#}{{ line['text'][line['link_end']:] }}{#
#}{% else %}{#
#}{{ line['text'] }}{#
#}{% end %}{#
#}</div>{#
#}{% end %}{#
#}</pre>
</div>
{% end %}