summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates
diff options
context:
space:
mode:
Diffstat (limited to 'python/fatcat_web/templates')
-rw-r--r--python/fatcat_web/templates/file_view.html3
1 files changed, 1 insertions, 2 deletions
diff --git a/python/fatcat_web/templates/file_view.html b/python/fatcat_web/templates/file_view.html
index 532e29fb..dc1fe2c3 100644
--- a/python/fatcat_web/templates/file_view.html
+++ b/python/fatcat_web/templates/file_view.html
@@ -54,9 +54,8 @@ This file is not associated with any fatcat release.
<tbody>
{% for url in file.urls %}
<tr><td class="two wide right aligned">{{ url.rel }}
- <!-- <a href="{{ url.url }}">{{ url.url.split('/')[2] }}</a> - {{ url.rel }}<br> -->
<td class="eight wide"><small><code><a href="{{ url.url }}">
- {% if url.url.count('/') > 3 %}
+ {% if url.url.count('/') >= 3 %}
{{ '/'.join(url.url.split('/')[0:2]) }}/<b>{{ ''.join(url.url.split('/')[2]) }}</b>/{{ '/'.join(url.url.split('/')[3:]) }}
{% else %}
{{ url.url }}