Anton Shestakov <av6@dwimlabs.net>, Tue, 30 Jan 2018 12:22:49 +0800
viewer: moment.js 2.20.1
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) %} <span class="uk-text-nowrap">· check #
{{ check.ordinal }}</span> <div class="uk-width-small-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> <img src="{{ project.get_url() }}/{{ check.ordinal }}/dot.svg" alt="Check Result"> {{ locale.translate('{} error', '{} errors', check.errors).format(check.errors) }},
{{ locale.translate('{} warning', '{} warnings', check.warnings).format(check.warnings) }} <dd><a href="{{ project.get_url() }}/{{ check.ordinal }}/raw">raw
</a></dd> <div class="uk-width-small-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> {% if reference is not None %} {% if check.errors > reference.errors %} <span class="uk-text-danger">worse
</span> than
{% elif check.errors < reference.errors %} <span class="uk-text-success">better
</span> than
{% if check.warnings > reference.warnings %} <span class="uk-text-warning">worse
</span> than
{% elif check.warnings < reference.warnings %} <span class="uk-text-success">better
</span> than
<a href="{{ project.get_url() }}/{{ reference.ordinal }}">check #
{{ reference.ordinal }}</a>,
the previous check on branch
{{ change.branch }} (
<a href="{{ project.get_url() }}/{{ check.ordinal }}/compare/{{ reference.ordinal }}">compare
</a>).
{% if chart or files or codes %} <div class="uk-flex uk-flex-middle uk-margin-top"> <div class="uk-position-relative uk-flex-item-auto chart-container"> <svg id="check-chart"></svg> <table class="uk-display-inline-block uk-position-absolute uk-position-z-index uk-text-nowrap uk-hidden chart-tooltip"> <div class="uk-display-inline-block legend-dot" data-dot="warnings"></div> <td data-point="warnings">0
</td> <div class="uk-display-inline-block legend-dot" data-dot="errors"></div> <td data-point="errors">0
</td> <div class="uk-display-inline-block legend-dot" data-dot="duration"></div> <td data-point="duration">0
</td> <script type="application/json" id="check-chart-data">{% raw json_encode(chart) %}</script> <div class="uk-position-relative uk-flex-item-none uk-margin-left uk-margin-right"> {% if files.get('errors') or files.get('warnings') %} <svg id="check-files-pie" width="120" height="120"></svg> <script type="application/json" id="check-files-data">{% raw json_encode(files) %}</script> {% if codes.get('errors') or codes.get('warnings') %} <svg id="check-codes-pie" width="120" height="120"></svg> <script type="application/json" id="check-codes-data">{% raw json_encode(codes) %}</script> <div class="uk-display-inline-block uk-position-absolute uk-position-z-index uk-text-nowrap uk-hidden pie-tooltip"></div> {% include ui/check-log.html %}