247:b9d50d59eddc
Anton Shestakov <av6@dwimlabs.net>, 2016-10-26
viewer: add <a> element for clone links (that actually look like links)

next change 256:86910486a6d1
previous change 246:f31fc5c409e1

templates/project.html

Other formats: Feeds:
Inserted Replaced Deleted
246:f31fc5c409e1 247:b9d50d59eddc
<h2>{% module Template('ui/project-link.html', project=project) %}</h2> <h2>{% module Template('ui/project-link.html', project=project) %}</h2>
<img src="{{ project.get_url() }}/status.svg" alt="Lint Status"> <img src="{{ project.get_url() }}/status.svg" alt="Lint Status">
{% include ui/codes.html %} {% include ui/codes.html %}
<dl class="uk-description-list-horizontal list-terse"> <dl class="uk-description-list-horizontal list-terse">
<dt>Clone URL:</dt> <dt>Clone URL:</dt>
<dd>{{ project.url }}</dd> <dd>
{{ project.url }}
{% if project.url.startswith(('http:', 'https:')) %}
<a href="{{ project.url }}"><i class="uk-icon-external-link"></i></a>
{% end %}
</dd>
{% set last = checks.first() %} {% set last = checks.first() %}
{% if last %} {% if last %}
<dt>Last check:</dt> <dt>Last check:</dt>
<dd>{% module Time(last.finished) %}</dd> <dd>{% module Time(last.finished) %}</dd>
{% end %} {% end %}