23:9f9b68ad5068
Anton Shestakov <av6@dwimlabs.net>, Wed, 15 Jun 2016 22:12:55 +0800
viewer: link to the checks from index page too

next change 24:16c6f6907c16
previous change 16:784e5bd0fcba

templates/project.html

Permissions: -rw-r--r--

Other formats: Feeds:
{% extends "base.html" %}
{% block title %}{{ project.name }}{% end %}
{% block content %}
<div class="uk-container uk-container-center uk-margin-large-top">
<h2>{{ project.name }}</h2>
<dl class="uk-description-list-horizontal list-terse">
<dt>Last check:</dt>
<dd>{% module Time(value=checks[0].finished) %}</dd>
<dt>Clone URL:</dt>
<dd>{{ project.url }}</dd>
</dl>
<table class="uk-table uk-table-middle">
<tbody>
{% for check in checks %}
{% set change = check.change %}
<tr>
<td>{{ check.errors }} error(s), {{ check.warnings }} warning(s)</td>
<td>
<a href="/{{ project.domain }}/{{ project.user or '-' }}/{{ project.name }}/{{ check.ordinal }}">
#{{ check.ordinal }}
</a>
</td>
<td>{{ change.rev }}:{{ change.node[:12] }} {{ change.branch }}</td>
<td>
<div>{{ change.message }}</div>
<div>{{ change.author }}, <time>{{ change.date }}</time></div>
</td>
<td>{% module Time(value=check.started) %}</td>
<td>{% module Time(value=check.finished) %}</td>
<td>{{ check.finished - check.started }}</td>
</tr>
{% end %}
</tbody>
</table>
</div>
{% end %}