aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates/release_search.html
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-07-14 18:50:47 -0700
committerBryan Newbold <bnewbold@robocracy.org>2019-07-14 18:50:47 -0700
commit969d5a2c913fcccce041d777f163bd8f995601b4 (patch)
tree8db68567877cb3efd366f0d6d1a5c9e50bf978cb /python/fatcat_web/templates/release_search.html
parent8bf05b624c228944c4337ce57d0efa9c5ff82dcf (diff)
downloadfatcat-x-attic-camp.tar.gz
fatcat-x-attic-camp.zip
add local links to search resultsx-attic-camp
Diffstat (limited to 'python/fatcat_web/templates/release_search.html')
-rw-r--r--python/fatcat_web/templates/release_search.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/python/fatcat_web/templates/release_search.html b/python/fatcat_web/templates/release_search.html
index 59411c62..dcbfeb35 100644
--- a/python/fatcat_web/templates/release_search.html
+++ b/python/fatcat_web/templates/release_search.html
@@ -49,7 +49,11 @@
</h4>
{% if paper.best_pdf_url %}
<div style="float: right; padding: 4px;">
- &nbsp;&nbsp;<a href="{{ paper.best_pdf_url }}" class="ui violet tag label"><i class="file icon"></i>fulltext</a>
+ {% if paper.ia_pdf_url and '://web.archive.org' in paper.ia_pdf_url %}
+ &nbsp;&nbsp;<a href="/release/{{ paper.ident }}/camp_pdf" class="ui yellow tag label"><i class="tree icon"></i>local copy</a>
+ <br>
+ {% endif %}
+ &nbsp;&nbsp;<a href="{{ paper.best_pdf_url }}" class="ui violet tag label">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<i class="file icon"></i>fulltext</a>
</div>
{% endif %}
{#