Download:
child 248:46372b527fd0
parent 246:f31fc5c409e1
247:b9d50d59eddc
Anton Shestakov <av6@dwimlabs.net>, Wed, 26 Oct 2016 18:55:41 +0800
viewer: add <a> element for clone links (that actually look like links)

1 файлов изменено, 6 вставок(+), 1 удалений(-) [+]
templates/project.html file | annotate | diff | comparison | revisions
--- a/templates/project.html Wed Oct 26 18:42:45 2016 +0800
+++ b/templates/project.html Wed Oct 26 18:55:41 2016 +0800
@@ -13,7 +13,12 @@
{% include ui/codes.html %}
<dl class="uk-description-list-horizontal list-terse">
<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() %}
{% if last %}
<dt>Last check:</dt>