Add a link to the app repo

This commit is contained in:
Alexandre Aubin 2018-01-30 13:37:27 -05:00
parent b88754ee70
commit 6f43325e42
3 changed files with 24 additions and 11 deletions

View file

@ -11,7 +11,7 @@
a { color:#007bff; }
.ci-app-table > thead, .ci-app-table > tbody { display: block; width: 100%;}
.ci-app-table { margin: 0 auto; margin-top: 100px; max-width: 1070px; overflow-x: visible; }
.ci-app-table { margin: 0 auto; margin-top: 100px; max-width: 1150px; overflow-x: visible; }
.ci-app-table th, .ci-app-table td { display: block; border: none; padding; 0px;float: left; height:33px; width: 33px; margin: 5px; }
th.ci-app-test-title

View file

@ -1,7 +1,12 @@
{% extends "base.html" %}
{% block content %}
<h2 class="text-center my-3">{{ app.name.title() }}</h2>
<h2 class="text-center my-3">{{ app.name.title() }}
<a href="{{ app.repo }}" style="font-size:15px">
<span class="oi oi-external-link text-info"
aria-hidden="true"
title="To the Git repo!"></span>
</a></h2>
<div class="row">
<div class="mx-auto">
@ -41,7 +46,7 @@
<span class="daysAgo" timestamp="{{ result.date.timestamp() }}" href="{{ result.url }}"></span>
{% endif %}
{% if result.commit != result.app.master_commit %}
<span class="oi oi-clock text-warning"
<span class="oi oi-clock text-warning"
aria-hidden="true"
title="This test is outdated : a more recent commit exists in master than the one tested."></span>
{% endif %}
@ -70,7 +75,7 @@
Commit is not up to date on {{ app.list.name }}.json !
</p>
{% endif %}
{% if app.testing_diff > 0 %}
<p class="card-text text-info">
<span class="oi oi-fork" aria-hidden="true"></span>
@ -94,7 +99,7 @@
No issues opened for this app !
</p>
{% endif %}
{% if app.opened_prs > 0 %}
<p class="card-text text-info">
<span class="oi oi-beaker" aria-hidden="true"></span>

View file

@ -16,6 +16,7 @@
<th class="ci-app-test-title"><div><span>{{ test }}</span></div></th>
{% endfor %}
<th class="ci-app-test-title"></th>
<th></th>
</tr>
</thead>
<tbody>
@ -26,8 +27,8 @@
<span class="official-star oi oi-star" title="Official" aria-hidden="true"></span>
{% endif %}
<a href="{{ url_for('main.appci_app', app=result.app.name) }}">
<span title="App">
<strong>{{ result.app.name }}</strong></span>
<span class="font-weight-bold" title="More tests / info for this app">
{{ result.app.name }}</span>
</a>
</td>
<td class="ci-app-level" value="{{ result.level }}">
@ -38,28 +39,35 @@
<div title="{{ test }}" value="{{ r }}"></div>
</td>
{% endfor %}
<td class="ci-app-test-info">
<td class="ci-app-test-info px-0">
{% if result.date == None %}
<span class="daysAgo" href="{{ result.url }}">???</span>
{% else %}
<span class="daysAgo" timestamp="{{ result.date.timestamp() }}" href="{{ result.url }}"></span>
{% endif %}
{% if result.commit != result.app.master_commit %}
<span class="oi oi-clock text-warning"
<span class="oi oi-clock text-warning"
aria-hidden="true"
title="This test is outdated : a more recent commit exists in master than the one tested."></span>
{% endif %}
{% if result.app.public_commit != result.app.master_commit %}
<span class="oi oi-warning text-warning"
<span class="oi oi-warning text-warning"
aria-hidden="true"
title="Master commit is not up to date with {{ result.app.list.name }}.json !"></span>
{% endif %}
{% if result.app.testing_diff > 0 %}
<span class="oi oi-fork text-info"
<span class="oi oi-fork text-info"
aria-hidden="true"
title="An active testing branch exists for this app."></span>
{% endif %}
</td>
<td class="px-0">
<a href="{{ result.app.repo }}">
<span class="oi oi-external-link text-info"
aria-hidden="true"
title="To the Git repo!"></span>
</a>
</td>
</tr>
{% endfor %}
</tbody>