aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-03-08 16:20:02 -0800
committerBryan Newbold <bnewbold@robocracy.org>2021-03-08 16:20:02 -0800
commit13f8cf1b166b83dbeea8f2be2833398a26fa4865 (patch)
treecb822da935e62b9006b89c3f6bf0bbb146de6f00
parentd033c570ad9d40c28b512ad567427a47a7a111ff (diff)
downloadfatcat-13f8cf1b166b83dbeea8f2be2833398a26fa4865.tar.gz
fatcat-13f8cf1b166b83dbeea8f2be2833398a26fa4865.zip
web: fixes to file view w/ no access link
-rw-r--r--python/fatcat_web/templates/file_view.html7
1 files changed, 5 insertions, 2 deletions
diff --git a/python/fatcat_web/templates/file_view.html b/python/fatcat_web/templates/file_view.html
index 608a2a0a..0f5a5fc6 100644
--- a/python/fatcat_web/templates/file_view.html
+++ b/python/fatcat_web/templates/file_view.html
@@ -49,8 +49,11 @@ No known archives or mirrors of this file.
<a href="{{ file._es.best_url }}" class="ui fluid huge black button" style="text-decoration: underline;">
<i class="file icon"></i>View Archived File
</a>
-{% else %}
- <span class="ui fluid huge grey segment"><i class="file cross icon"></i>No Public URL</span>
+{% elif file.state and file.state == "active" %}
+ <span class="ui fluid huge grey button">
+ <i class="file cross icon"></i>
+ No Public URL
+ </span>
{% endif %}
<br>