24:16c6f6907c16
Anton Shestakov <av6@dwimlabs.net>, Wed, 15 Jun 2016 22:13:58 +0800
viewer: show badges for checks (using a UI module)

next change 25:52cac2f85af5
previous change 23:9f9b68ad5068

templates/index.html

Permissions: -rw-r--r--

Other formats: Feeds:
{% extends "base.html" %}
{% block title %}Recently checked projects{% end %}
{% block content %}
<div class="uk-container uk-container-center uk-margin-large-top">
<h2>Recently checked projects</h2>
<table class="uk-table uk-table-middle">
<tbody>
{% for check in checks %}
{% set project = check.project %}
{% set change = check.change %}
<tr>
<td>{% module Badges(check=check) %}</td>
<td>
<a href="/{{ project.domain }}/{{ project.user or '-' }}/{{ project.name }}/{{ check.ordinal }}">
#{{ check.ordinal }}
</a>
</td>
<td>
<a href="/{{ project.domain }}/{{ project.user or '-' }}/{{ project.name }}">
{{ project.name }}
</a>
</td>
<td>{{ change.rev }}:{{ change.node[:12] }} {{ change.branch }}</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 %}