next change | 241:f5efb98791b5 |
previous change | 216:f679f272fe10 |
Permissions: -rw-r--r--
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
|
|
46
46:0f45e02848a1
models: add Project.get_title() method, use it, test it
Anton Shestakov <av6@dwimlabs.net>
previous changes: 33:640477d35e0b
line |
diff
|
{% block title %}{{ project.get_title() }}{% end %} |
12
12:2ea3583bd611
viewer: project view
Anton Shestakov <av6@dwimlabs.net>
previous changes:
line |
diff
|
|
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"> |
46
46:0f45e02848a1
models: add Project.get_title() method, use it, test it
Anton Shestakov <av6@dwimlabs.net>
previous changes: 33:640477d35e0b
line |
diff
|
<h2><a href="{{ project.get_url() }}">{{ project.get_title() }}</a></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> |
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
|
<dd>{{ project.url }}</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> |
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
|
<dd>{% module Time(last.finished) %}</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> |
84
84:4f2bfc44855a
viewer: don't break words in the tables at all
Anton Shestakov <av6@dwimlabs.net>
previous changes: 83:4f16241937e7
line |
diff
|
<td>{% 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 %} |