Anton Shestakov <av6@dwimlabs.net>, Wed, 26 Oct 2016 07:33:36 +0800
viewer: add Atom feeds to projects
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"> {% module Template('ui/project-link.html', project=project) %} · 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> <dd><a href="{{ project.get_url() }}/{{ check.ordinal }}/raw">raw
</a></dd> <div class="uk-width-medium-2-3"> <dl class="uk-description-list-horizontal list-terse"> {% set change = check.change %} <dd><a href="{{ adapter.get_commit_url(change) }}">{% if change.rev is not None %}{{ change.rev }}:
{% end %}{{ change.node[:12] }}</a></dd> <dd><a href="{{ adapter.get_branch_url(change) }}">{{ change.branch }}</a></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 'link' in line %}{# #}{{ line['text'][:line['link_start']] }}{# #}<a href="{{ line['link'] }}" class="filelink">{# #}{{ line['text'][line['link_start']:line['link_end']] }}{# #}{{ line['text'][line['link_end']:] }}{# $('.check-log div.task').each(function() { var task = $line.attr('data-task'); var $lines = $line.nextAll('[data-task="' + task + '"]'); if ($lines.length === 0) { return; } var $collapser = $('<a>').addClass('collapser'); $line.append($collapser); var toggle = function() { var collapsed = $collapser.hasClass('collapsed'); $lines.toggleClass('uk-hidden', collapsed); $collapser.on('click', function() { $collapser.toggleClass('collapsed'); var important = '.error, .warning, .failure, :target'; if (task != 'checks' && $lines.filter(important).length === 0) { $collapser.addClass('collapsed');