Anton Shestakov <av6@dwimlabs.net>, Wed, 15 Jun 2016 22:13:58 +0800
viewer: show badges for checks (using a UI module)
templates/project.html
Permissions: -rw-r--r--
{% extends "base.html" %} {% block title %}{{ project.name }}{% end %} <div class="uk-container uk-container-center uk-margin-large-top"> <h2>{{ project.name }}</h2> <dl class="uk-description-list-horizontal list-terse"> <dd>{% module Time(value=checks[0].finished) %}</dd> <dd>{{ project.url }}</dd> <table class="uk-table uk-table-middle"> {% for check in checks %} {% set change = check.change %} <td>{% module Badges(check=check) %}</td> <a href="/{{ project.domain }}/{{ project.user or '-' }}/{{ project.name }}/{{ check.ordinal }}"> <td>{{ change.rev }}:
{{ change.node[:12] }} {{ change.branch }}</td> <div>{{ change.message }}</div> <div>{{ change.author }},
<time>{{ change.date }}</time></div> <td>{% module Time(value=check.started) %}</td> <td>{% module Time(value=check.finished) %}</td> <td>{{ check.finished - check.started }}</td>