Fix link to CI on per-app pages

This commit is contained in:
Alexandre Aubin 2019-01-22 16:05:47 +00:00
parent d0415b88bb
commit 2f179a32d1

View file

@ -40,18 +40,10 @@
</td> </td>
{% endfor %} {% endfor %}
<td class="ci-app-test-info"> <td class="ci-app-test-info">
{% if result.url == None %}
{% if result.date == None %} {% if result.date == None %}
<span class="daysAgo">???</span> <span class="daysAgo" href="{{ result.branch.last_build_url(app) }}">???</span>
{% else %} {% else %}
<span class="daysAgo" timestamp="{{ result.date.timestamp() }}"></span> <span class="daysAgo" timestamp="{{ result.date.timestamp() }}" href="{{ result.branch.last_build_url(app) }}"></span>
{% endif %}
{% else %}
{% if result.date == None %}
<span class="daysAgo" href="{{ result.url.replace("consoleText", "consoleFull") }}">???</span>
{% else %}
<span class="daysAgo" timestamp="{{ result.date.timestamp() }}" href="{{ result.url.replace("consoleText", "consoleFull") }}"></span>
{% endif %}
{% endif %} {% endif %}
{% if result.commit != result.app.master_commit %} {% if result.commit != result.app.master_commit %}
<span class="oi oi-clock text-warning" <span class="oi oi-clock text-warning"