summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates/file_view.html
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-02-28 15:01:17 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-02-28 15:01:17 -0800
commitd126c74f1326449e5941c8bac4dbe724dc067ef8 (patch)
tree35f9442c18c0e658659a28430f092c6a7709ae16 /python/fatcat_web/templates/file_view.html
parente4d2801acec50b763c104fc87df69f943f54fa7c (diff)
downloadfatcat-d126c74f1326449e5941c8bac4dbe724dc067ef8.tar.gz
fatcat-d126c74f1326449e5941c8bac4dbe724dc067ef8.zip
fix domain bolding
Diffstat (limited to 'python/fatcat_web/templates/file_view.html')
-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 }}