--- a/candolint/models.py Wed Jul 06 16:43:51 2016 +0800
+++ b/candolint/models.py Wed Jul 06 16:49:16 2016 +0800
(('ordinal', 'project'), True),
- def get_url(self, request=None):
- return '{}/{}'.format(self.project.get_url(request), self.ordinal)
d = self.finished - self.started
minutes, seconds = divmod(int(d.total_seconds()), 60)
--- a/templates/check.html Wed Jul 06 16:43:51 2016 +0800
+++ b/templates/check.html Wed Jul 06 16:49:16 2016 +0800
<dd>{{ check.get_duration() }}</dd>
- <dd><a href="{{ check.get_url() }}/raw">raw</a></dd>
+ <dd><a href="{{ project.get_url() }}/{{ check.ordinal }}/raw">raw</a></dd>
<div class="uk-width-medium-2-3">
--- a/templates/index.html Wed Jul 06 16:43:51 2016 +0800
+++ b/templates/index.html Wed Jul 06 16:49:16 2016 +0800
{% set adapter = project.get_adapter() %}
<td>{% module Badges(check) %}</td>
- <td><a href="{{ check.get_url() }}">check #{{ check.ordinal }}</a></td>
+ <td><a href="{{ project.get_url() }}/{{ check.ordinal }}">check #{{ check.ordinal }}</a></td>
<td class="uk-width-1-1 uk-text-break"><a href="{{ project.get_url() }}">{{ project.get_title() }}</a></td>
<td><a href="{{ adapter.get_branch_url(change) }}">{{ change.branch }}</a></td>
<td><a href="{{ adapter.get_commit_url(change) }}">{{ change.rev }}:{{ change.node[:12] }}</a></td>
--- a/templates/project.html Wed Jul 06 16:43:51 2016 +0800
+++ b/templates/project.html Wed Jul 06 16:49:16 2016 +0800
{% set adapter = project.get_adapter() %}
<td>{% module Badges(check) %}</td>
- <td><a href="{{ check.get_url() }}">check #{{ check.ordinal }}</a></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) }}">{{ change.rev }}:{{ change.node[:12] }}</a></td>
<td class="uk-width-1-1 uk-text-break">