Anton Shestakov <av6@dwimlabs.net>, Wed, 27 Jul 2016 18:39:44 +0800
viewer: shared regular expression for matching project
templates/project.html
Permissions: -rw-r--r--
{% extends "base.html" %} {% block title %}{{ project.get_title() }}{% end %} <div class="uk-container uk-container-center uk-margin-large-top"> <h2><a href="{{ project.get_url() }}">{{ project.get_title() }}</a></h2> <img src="{{ project.get_url() }}/status.svg" alt="Lint Status"> {% include ui/codes.html %} <dl class="uk-description-list-horizontal list-terse"> <dd>{{ project.url }}</dd> <dd>{% module Time(checks[0].finished) %}</dd> <table class="uk-table uk-table-middle uk-text-nowrap"> {% for check in checks %} {% set change = check.change %} {% set adapter = project.get_adapter() %} <td>{% module Badges(check) %}</td> <td><a href="{{ project.get_url() }}/{{ check.ordinal }}">check #
{{ check.ordinal }}</a></td> <td><a href="{{ adapter.get_branch_url(change) }}">{{ change.branch }}</a></td> <td><a href="{{ adapter.get_commit_url(change) }}">{% if change.rev is not None %}{{ change.rev }}:
{% end %}{{ change.node[:12] }}</a></td> <td class="uk-width-1-1 uk-text-break"> <div>{{ change.message }}</div> <div>{{ change.author }},
{% module Time(change.date, False) %}</div> <td>{% module Time(check.finished) %}</td> <td>{{ check.get_duration() }}</td>