diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-07-14 18:50:47 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-07-14 18:50:47 -0700 |
commit | 969d5a2c913fcccce041d777f163bd8f995601b4 (patch) | |
tree | 8db68567877cb3efd366f0d6d1a5c9e50bf978cb /python/fatcat_web/templates | |
parent | 8bf05b624c228944c4337ce57d0efa9c5ff82dcf (diff) | |
download | fatcat-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')
-rw-r--r-- | python/fatcat_web/templates/release_search.html | 6 |
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;"> - <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 %} + <a href="/release/{{ paper.ident }}/camp_pdf" class="ui yellow tag label"><i class="tree icon"></i>local copy</a> + <br> + {% endif %} + <a href="{{ paper.best_pdf_url }}" class="ui violet tag label"> <i class="file icon"></i>fulltext</a> </div> {% endif %} {# |