summaryrefslogtreecommitdiffstats
path: root/python
diff options
context:
space:
mode:
Diffstat (limited to 'python')
-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>