aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates/container_view.html
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2020-09-17 19:40:09 -0700
committerBryan Newbold <bnewbold@robocracy.org>2020-09-17 19:40:09 -0700
commit078495ade3eb095d2f2ff5fb5dbd049c39ad9bfe (patch)
treec8eddcbeab6e5ec1e54321f033bb0a6be4657c5b /python/fatcat_web/templates/container_view.html
parentbb566cce2003404c1bc83d1e8c87f4b7197a0c9f (diff)
downloadfatcat-078495ade3eb095d2f2ff5fb5dbd049c39ad9bfe.tar.gz
fatcat-078495ade3eb095d2f2ff5fb5dbd049c39ad9bfe.zip
web container view: hide preservation when no releases
Diffstat (limited to 'python/fatcat_web/templates/container_view.html')
-rw-r--r--python/fatcat_web/templates/container_view.html14
1 files changed, 6 insertions, 8 deletions
diff --git a/python/fatcat_web/templates/container_view.html b/python/fatcat_web/templates/container_view.html
index 8b4ddeb9..9a71fe72 100644
--- a/python/fatcat_web/templates/container_view.html
+++ b/python/fatcat_web/templates/container_view.html
@@ -65,15 +65,12 @@
</div>
</div>
</div>
-<div class="ui segment attached">
- <b>Preservation Status</b><br>
- {% if container._stats.total >= 1 %}
- {{ entity_macros.preservation_bar(container._stats.preservation) }}
- {{ entity_macros.preservation_small_table(container._stats.preservation) }}
- {% endif %}
-</div>
{% if container._stats.total >= 1 %}
-{% endif %}
+ <div class="ui segment attached">
+ <b>Preservation Status</b><br>
+ {{ entity_macros.preservation_bar(container._stats.preservation) }}
+ {{ entity_macros.preservation_small_table(container._stats.preservation) }}
+ </div>
<div class="ui segment attached">
<b>Work Types</b><br>
<table class="ui very basic very compact collapsing table">
@@ -92,6 +89,7 @@
</table>
</div>
{% endif %}
+{% endif %}
{% if container.issnl != None or container.wikidata_qid != None %}
<div class="ui segment attached">