Anton Shestakov <av6@dwimlabs.net>, Sun, 03 Jul 2016 23:04:08 +0800
checker: a config without linters is useless, but valid
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>{% module Time(change.date, False) %}</dd> <dd>{{ change.message }}</dd> <pre class="check-log">{# #}{% for number, line in enumerate(lines, 1) %}{# #}<div id="l{{ number }}"{% if 'task' in line %} data-task="{{ line['task'] }}"{% end %}{% if 'cls' in line %} class="{{ line['cls'] }}"{% end %}>{# #}<a href="#l{{ number }}" class="lineno" data-line-number="{{ number }}"></a>{# #}{% if line.get('cls') == 'task' and line.get('task') != 'cleanup' %}{# #}<a class="collapser"></a>{# $('.check-log .collapser').each(function() { var $collapser = $(this); var $header = $collapser.closest('div'); var task = $header.attr('data-task'); var $lines = $header.nextAll('[data-task="' + task + '"]'); var toggle = function() { var collapsed = $collapser.hasClass('collapsed'); $lines.toggleClass('uk-hidden', collapsed); $collapser.on('click', function() { $collapser.toggleClass('collapsed'); if ((task == 'setup' || task == 'clone') && $lines.filter('.error, .warning, :target').length === 0) { $collapser.addClass('collapsed');