242:d1f63a197c74
Anton Shestakov <av6@dwimlabs.net>, Wed, 26 Oct 2016 06:51:26 +0800
tests: test <date> elements in test_check()

next change 246:f31fc5c409e1
previous change 241:f5efb98791b5

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>{% module Template('ui/project-link.html', project=project) %}</h2>
<img src="{{ project.get_url() }}/status.svg" alt="Lint Status">
{% include ui/codes.html %}
<dl class="uk-description-list-horizontal list-terse">
<dt>Clone URL:</dt>
<dd>{{ project.url }}</dd>
{% set last = checks.first() %}
{% if last %}
<dt>Last check:</dt>
<dd>{% module Time(last.finished) %}</dd>
{% end %}
</dl>
<table class="uk-table uk-table-middle uk-text-nowrap">
<tbody>
{% set paged_checks = handler.paginate(checks) %}
{% for check in paged_checks.iterator() %}
{% set change = check.change %}
{% set adapter = project.get_adapter() %}
<tr>
<td>{% module Badges(check) %}</td>
<td><a href="{{ project.get_url() }}/{{ check.ordinal }}">check #{{ check.ordinal }}</a></td>
<td><a href="{{ adapter.get_branch_url(change) }}">{{ change.branch }}</a></td>
<td><a href="{{ adapter.get_commit_url(change) }}">{% if change.rev is not None %}{{ change.rev }}:{% end %}{{ change.node[:12] }}</a></td>
<td class="uk-width-1-1">
<div class="wrap-normal">{{ change.message }}</div>
<div>{{ change.author }}, {% module Time(change.date, False) %}</div>
</td>
<td>{% module Time(check.finished) %}</td>
<td>{{ check.get_duration() }}</td>
</tr>
{% end %}
</tbody>
</table>
{% if paged_checks.pages > 1 %}
{% module Pagination(paged_checks.page, paged_checks.pages) %}
{% end %}
</div>
{% end %}