Anton Shestakov <av6@dwimlabs.net>, Sat, 25 Jun 2016 18:16:39 +0800
models: drop Check.raw field (not worth storing in the same table)
Replaying checks can be done (and is easier) when storing checker output in
plain files, so let's lighten up the load on the database.
templates/check.html
Permissions: -rw-r--r--
{% extends "base.html" %} {% block title %}Check #
{{ check.ordinal }}{% end %} <div class="uk-container uk-container-center uk-margin-large-top"> <a href="{{ project.get_url() }}">{{ project.get_title() }}</a>:
check #
{{ check.ordinal }} {{ locale.translate('{} error', '{} errors', check.errors).format(check.errors) }},
{{ locale.translate('{} warning', '{} warnings', check.warnings).format(check.warnings) }} <div class="uk-width-medium-1-3"> <dl class="uk-description-list-horizontal list-terse"> <dd>{% module Time(check.started) %}</dd> <dd>{% module Time(check.finished) %}</dd> <dd>{{ check.get_duration() }}</dd> <div class="uk-width-medium-2-3"> <dl class="uk-description-list-horizontal list-terse"> {% set change = check.change %} <dd>{{ change.rev }}:
{{ change.node[:12] }} {{ change.branch }}</dd> <dd>{{ change.author }}</dd> <dd><time>{{ change.date }}</time></dd> <dd>{{ change.message }}</dd> <pre class="check-log">{# #}{% for number, line in enumerate(lines, 1) %}{# #}<div id="l{{ number }}"{% if 'cls' in line %} class="{{ line['cls'] }}"{% end %}>{# #}<a href="#l{{ number }}" class="lineno" data-line-number="{{ number }}"></a>{#