aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat/templates/file_view.html
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2018-07-25 17:24:49 -0700
committerBryan Newbold <bnewbold@robocracy.org>2018-07-25 17:24:49 -0700
commit376763ce13c86d78f5e30c5660bb3b767a0c44fc (patch)
tree8f31e97202ff21cc7e51f71cdb314d9e94a3233a /python/fatcat/templates/file_view.html
parent829765848a57190a7bb7fd4ff985f49d61055e97 (diff)
downloadfatcat-376763ce13c86d78f5e30c5660bb3b767a0c44fc.tar.gz
fatcat-376763ce13c86d78f5e30c5660bb3b767a0c44fc.zip
webface updaes for newer schema (and abstracts)
Diffstat (limited to 'python/fatcat/templates/file_view.html')
-rw-r--r--python/fatcat/templates/file_view.html9
1 files changed, 5 insertions, 4 deletions
diff --git a/python/fatcat/templates/file_view.html b/python/fatcat/templates/file_view.html
index 54a6c18a..2934224d 100644
--- a/python/fatcat/templates/file_view.html
+++ b/python/fatcat/templates/file_view.html
@@ -36,8 +36,9 @@ This file is not associated with any fatcat release.
{% if file.url != None %}
<p>Known locations of this file:
<ul>
- <li><a href="{{ file.url }}">{{ file.url.split('/')[2] }}</a>
- (<a href="https://web.archive.org/web/1/{{ file.url }}">Wayback mirror</a>)
+{% for url in file.urls %}
+ <li><a href="{{ url.url }}">{{ url.url.split('/')[2] }}</a> ({{ url.rel }})<br>
+{% endfor %}
</ul>
{% else %}
No known public URL, mirror, or archive for this file.
@@ -71,8 +72,8 @@ Raw Object:
</div>
<div class="five wide column">
-{% if file.url != None %}
-<a href="https://web.archive.org/web/1/{{ file.url }}" class="ui top attached fluid huge green button"><i class="file icon"></i>Download File</a>
+{% if file.urls != None and file.urls != [] %}
+<a href="https://web.archive.org/web/1/{{ file.urls[0].url }}" class="ui top attached fluid huge green button"><i class="file icon"></i>Download File</a>
{% else %}
<span class="ui top attached fluid huge grey button"><i class="file cross icon"></i>No Download Available</span>
{% endif %}