38:4326af080387
Anton Shestakov <av6@dwimlabs.net>, Sat, 18 Jun 2016 22:30:42 +0800
viewer: get_or_404() to raise 404 (instead of 500) when model doesn't exist

next change 46:0f45e02848a1
previous change 31:b3bf8932a839

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 class="uk-text-nowrap">{% module Badges(check) %}</td>
<td><a href="{{ check.get_url() }}">#{{ check.ordinal }}</a></td>
<td><a href="{{ project.get_url() }}">{{ project.name }}</a></td>
<td>{{ change.rev }}:{{ change.node[:12] }} {{ change.branch }}</td>
<td>{% module Time(check.started) %}</td>
<td>{% module Time(check.finished) %}</td>
<td>{{ check.get_duration() }}</td>
</tr>
{% end %}
</tbody>
</table>
</div>
{% end %}