From d126c74f1326449e5941c8bac4dbe724dc067ef8 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 28 Feb 2019 15:01:17 -0800 Subject: fix domain bolding --- python/fatcat_web/templates/file_view.html | 3 +-- 1 file changed, 1 insertion(+), 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. {% for url in file.urls %} {{ url.rel }} - - {% if url.url.count('/') > 3 %} + {% if url.url.count('/') >= 3 %} {{ '/'.join(url.url.split('/')[0:2]) }}/{{ ''.join(url.url.split('/')[2]) }}/{{ '/'.join(url.url.split('/')[3:]) }} {% else %} {{ url.url }} -- cgit v1.2.3