48:9b37d0f08f1c
Anton Shestakov <av6@dwimlabs.net>, Sun, 19 Jun 2016 22:04:57 +0800
incoming: save filename and line number for linter output in Check.lines

next change 75:a784221a989b
previous change 46:0f45e02848a1

templates/project.html

Permissions: -rw-r--r--

Other formats: Feeds:
{% extends "base.html" %}
{% block title %}{{ project.get_title() }}{% end %}
{% block content %}
<div class="uk-container uk-container-center uk-margin-large-top">
<h2><a href="{{ project.get_url() }}">{{ project.get_title() }}</a></h2>
<img src="{{ project.get_url() }}/status.svg" alt="Lint Status">
<dl class="uk-description-list-horizontal list-terse">
{% if checks %}
<dt>Last check:</dt>
<dd>{% module Time(checks[0].finished) %}</dd>
{% end %}
<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 class="uk-text-nowrap">{% module Badges(check) %}</td>
<td><a href="{{ check.get_url() }}">#{{ 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(check.started) %}</td>
<td>{% module Time(check.finished) %}</td>
<td>{{ check.get_duration() }}</td>
</tr>
{% end %}
</tbody>
</table>
</div>
{% end %}