270:9842fdf0d791
Anton Shestakov <av6@dwimlabs.net>, 2017-07-22
viewer: show check results in plain text in the details list

previous change 264:291cb12f5f10

templates/project.html

Permissions: -rw-r--r--

Other formats: Feeds:
12
12:2ea3583bd611 viewer: project view
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
{% extends "base.html" %}
12:2ea3583bd611 viewer: project view
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
241
241:f5efb98791b5 viewer: display full project link, but shade domain and user part
Anton Shestakov <av6@dwimlabs.net>
previous changes: 216:f679f272fe10
line | diff
{% block title %}{{ project.name }}{% end %}
12
12:2ea3583bd611 viewer: project view
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
246
246:f31fc5c409e1 viewer: add <link type="alternate"> element for atom feed
Anton Shestakov <av6@dwimlabs.net>
previous changes: 241:f5efb98791b5
line | diff
{% block alternate %}
246:f31fc5c409e1 viewer: add <link type="alternate"> element for atom feed
Anton Shestakov <av6@dwimlabs.net>
previous changes: 241:f5efb98791b5
line | diff
<link rel="alternate" href="{{ project.get_url() }}/atom" type="application/atom+xml" title="{{ project.name }} feed">
246:f31fc5c409e1 viewer: add <link type="alternate"> element for atom feed
Anton Shestakov <av6@dwimlabs.net>
previous changes: 241:f5efb98791b5
line | diff
{% end %}
246:f31fc5c409e1 viewer: add <link type="alternate"> element for atom feed
Anton Shestakov <av6@dwimlabs.net>
previous changes: 241:f5efb98791b5
line | diff
12
12:2ea3583bd611 viewer: project view
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
{% block content %}
12:2ea3583bd611 viewer: project view
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<div class="uk-container uk-container-center uk-margin-large-top">
241
241:f5efb98791b5 viewer: display full project link, but shade domain and user part
Anton Shestakov <av6@dwimlabs.net>
previous changes: 216:f679f272fe10
line | diff
<h2>{% module Template('ui/project-link.html', project=project) %}</h2>
29
29:ac35779a1585 viewer: add project status badge on the project page
Anton Shestakov <av6@dwimlabs.net>
previous changes: 28:46b429c6500d
line | diff
<img src="{{ project.get_url() }}/status.svg" alt="Lint Status">
76
76:0bf0068a51dd viewer: generate status badge codes for embedding
Anton Shestakov <av6@dwimlabs.net>
previous changes: 75:a784221a989b
line | diff
{% include ui/codes.html %}
12
12:2ea3583bd611 viewer: project view
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<dl class="uk-description-list-horizontal list-terse">
83
83:4f16241937e7 viewer: move clone url to the top of the properties list in project.html
Anton Shestakov <av6@dwimlabs.net>
previous changes: 76:0bf0068a51dd
line | diff
<dt>Clone URL:</dt>
247
247:b9d50d59eddc viewer: add <a> element for clone links (that actually look like links)
Anton Shestakov <av6@dwimlabs.net>
previous changes: 246:f31fc5c409e1
line | diff
<dd>
247:b9d50d59eddc viewer: add <a> element for clone links (that actually look like links)
Anton Shestakov <av6@dwimlabs.net>
previous changes: 246:f31fc5c409e1
line | diff
{{ project.url }}
247:b9d50d59eddc viewer: add <a> element for clone links (that actually look like links)
Anton Shestakov <av6@dwimlabs.net>
previous changes: 246:f31fc5c409e1
line | diff
{% if project.url.startswith(('http:', 'https:')) %}
247:b9d50d59eddc viewer: add <a> element for clone links (that actually look like links)
Anton Shestakov <av6@dwimlabs.net>
previous changes: 246:f31fc5c409e1
line | diff
<a href="{{ project.url }}"><i class="uk-icon-external-link"></i></a>
247:b9d50d59eddc viewer: add <a> element for clone links (that actually look like links)
Anton Shestakov <av6@dwimlabs.net>
previous changes: 246:f31fc5c409e1
line | diff
{% end %}
247:b9d50d59eddc viewer: add <a> element for clone links (that actually look like links)
Anton Shestakov <av6@dwimlabs.net>
previous changes: 246:f31fc5c409e1
line | diff
</dd>
215
215:7716c8ee7c85 viewer: use SelectQuery.first() to get the last check or None
Anton Shestakov <av6@dwimlabs.net>
previous changes: 188:b06da1c7560e
line | diff
{% set last = checks.first() %}
215:7716c8ee7c85 viewer: use SelectQuery.first() to get the last check or None
Anton Shestakov <av6@dwimlabs.net>
previous changes: 188:b06da1c7560e
line | diff
{% if last %}
33
33:640477d35e0b viewer: don't show last check date if there are no checks
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:b3bf8932a839
line | diff
<dt>Last check:</dt>
264
264:291cb12f5f10 viewer: finally thought of a nice place for the feed link
Anton Shestakov <av6@dwimlabs.net>
previous changes: 256:86910486a6d1
line | diff
<dd>
264:291cb12f5f10 viewer: finally thought of a nice place for the feed link
Anton Shestakov <av6@dwimlabs.net>
previous changes: 256:86910486a6d1
line | diff
{% module Time(last.finished) %}
264:291cb12f5f10 viewer: finally thought of a nice place for the feed link
Anton Shestakov <av6@dwimlabs.net>
previous changes: 256:86910486a6d1
line | diff
<a href="{{ project.get_url() }}/atom"><i class="uk-icon-rss-square"></i></a>
264:291cb12f5f10 viewer: finally thought of a nice place for the feed link
Anton Shestakov <av6@dwimlabs.net>
previous changes: 256:86910486a6d1
line | diff
</dd>
33
33:640477d35e0b viewer: don't show last check date if there are no checks
Anton Shestakov <av6@dwimlabs.net>
previous changes: 31:b3bf8932a839
line | diff
{% end %}
12
12:2ea3583bd611 viewer: project view
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
</dl>
84
84:4f2bfc44855a viewer: don't break words in the tables at all
Anton Shestakov <av6@dwimlabs.net>
previous changes: 83:4f16241937e7
line | diff
<table class="uk-table uk-table-middle uk-text-nowrap">
12
12:2ea3583bd611 viewer: project view
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<tbody>
216
216:f679f272fe10 viewer: basic pagination on project page (to see all previous checks)
Anton Shestakov <av6@dwimlabs.net>
previous changes: 215:7716c8ee7c85
line | diff
{% set paged_checks = handler.paginate(checks) %}
216:f679f272fe10 viewer: basic pagination on project page (to see all previous checks)
Anton Shestakov <av6@dwimlabs.net>
previous changes: 215:7716c8ee7c85
line | diff
{% for check in paged_checks.iterator() %}
12
12:2ea3583bd611 viewer: project view
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
{% set change = check.change %}
109
109:6cbbab799f3c viewer: provide change/branch links for projects (i.e. on Bitbucket)
Anton Shestakov <av6@dwimlabs.net>
previous changes: 104:809ad2845e50
line | diff
{% set adapter = project.get_adapter() %}
12
12:2ea3583bd611 viewer: project view
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
<tr>
256
256:86910486a6d1 templates: align badges to the right on project page too
Anton Shestakov <av6@dwimlabs.net>
previous changes: 247:b9d50d59eddc
line | diff
<td class="uk-text-right">{% module Badges(check) %}</td>
115
115:2311bfce57b4 viewer: remove Check.get_url() method for not being very useful
Anton Shestakov <av6@dwimlabs.net>
previous changes: 109:6cbbab799f3c
line | diff
<td><a href="{{ project.get_url() }}/{{ check.ordinal }}">check #{{ check.ordinal }}</a></td>
109
109:6cbbab799f3c viewer: provide change/branch links for projects (i.e. on Bitbucket)
Anton Shestakov <av6@dwimlabs.net>
previous changes: 104:809ad2845e50
line | diff
<td><a href="{{ adapter.get_branch_url(change) }}">{{ change.branch }}</a></td>
120
120:21ef016ac29d models: revs are not unique, can be nulls
Anton Shestakov <av6@dwimlabs.net>
previous changes: 115:2311bfce57b4
line | diff
<td><a href="{{ adapter.get_commit_url(change) }}">{% if change.rev is not None %}{{ change.rev }}:{% end %}{{ change.node[:12] }}</a></td>
187
187:733e60f38046 templates: only break words in commit message, not in author or date
Anton Shestakov <av6@dwimlabs.net>
previous changes: 120:21ef016ac29d
line | diff
<td class="uk-width-1-1">
188
188:b06da1c7560e templates: cancel nowrap from the whole table for commit messages
Anton Shestakov <av6@dwimlabs.net>
previous changes: 187:733e60f38046
line | diff
<div class="wrap-normal">{{ change.message }}</div>
75
75:a784221a989b viewer: add proper markup to changeset date so it's picked up by moment.js
Anton Shestakov <av6@dwimlabs.net>
previous changes: 46:0f45e02848a1
line | diff
<div>{{ change.author }}, {% module Time(change.date, False) %}</div>
12
12:2ea3583bd611 viewer: project view
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
</td>
25
25:52cac2f85af5 viewer: the two existing UI modules can just use positional arguments
Anton Shestakov <av6@dwimlabs.net>
previous changes: 24:16c6f6907c16
line | diff
<td>{% module Time(check.finished) %}</td>
27
27:9fa79edc2e45 viewer: use new get_duration() method to format time taken by a check
Anton Shestakov <av6@dwimlabs.net>
previous changes: 26:8c1ce7d12350
line | diff
<td>{{ check.get_duration() }}</td>
12
12:2ea3583bd611 viewer: project view
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
</tr>
12:2ea3583bd611 viewer: project view
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
{% end %}
12:2ea3583bd611 viewer: project view
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
</tbody>
12:2ea3583bd611 viewer: project view
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
</table>
216
216:f679f272fe10 viewer: basic pagination on project page (to see all previous checks)
Anton Shestakov <av6@dwimlabs.net>
previous changes: 215:7716c8ee7c85
line | diff
{% if paged_checks.pages > 1 %}
216:f679f272fe10 viewer: basic pagination on project page (to see all previous checks)
Anton Shestakov <av6@dwimlabs.net>
previous changes: 215:7716c8ee7c85
line | diff
{% module Pagination(paged_checks.page, paged_checks.pages) %}
216:f679f272fe10 viewer: basic pagination on project page (to see all previous checks)
Anton Shestakov <av6@dwimlabs.net>
previous changes: 215:7716c8ee7c85
line | diff
{% end %}
12
12:2ea3583bd611 viewer: project view
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
</div>
12:2ea3583bd611 viewer: project view
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line | diff
{% end %}