diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-06-13 14:24:16 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-06-13 14:24:16 -0700 |
commit | 404f6ff6d542dc6dc61395cdb25646e3a69eb061 (patch) | |
tree | c70a5421be53f935674f64f0d519a31e32fba4d4 /python/fatcat_web/templates/container_view.html | |
parent | 95286700bbe06c8c0676e08acc0b6dc4a8f8504d (diff) | |
download | fatcat-404f6ff6d542dc6dc61395cdb25646e3a69eb061.tar.gz fatcat-404f6ff6d542dc6dc61395cdb25646e3a69eb061.zip |
implement major refactor for other entity types
Diffstat (limited to 'python/fatcat_web/templates/container_view.html')
-rw-r--r-- | python/fatcat_web/templates/container_view.html | 34 |
1 files changed, 17 insertions, 17 deletions
diff --git a/python/fatcat_web/templates/container_view.html b/python/fatcat_web/templates/container_view.html index ef4335fb..b86b1aa7 100644 --- a/python/fatcat_web/templates/container_view.html +++ b/python/fatcat_web/templates/container_view.html @@ -1,4 +1,4 @@ -{% set entity = container %} +{% set container = entity %} {% import "entity_macros.html" as entity_macros %} {% extends "base.html" %} @@ -50,9 +50,9 @@ <div class="five wide column"> <div class="ui segment top attached"> -{% if container.es and container.es.is_oa == True %} +{% if container._es and container._es.is_oa == True %} <i class="icon unlock huge orange"></i><b>Open Access Publisher</b> -{% elif container.es and container.es.is_oa == False %} +{% elif container._es and container._es.is_oa == False %} <i class="icon lock huge black"></i><b>Not Open Access</b> {% else %} <i class="icon question huge grey"></i><b>Unknown OA Status</b> @@ -77,37 +77,37 @@ </div><div class="ui segment attached"> {% endif %} -{% if container_stats %} +{% if container._stats %} <b>Release Counts</b><br> - {{ "{:,}".format(container_stats.total) }} total - {% if container_stats.total >= 1 %} - <br>{{ "{:,}".format(container_stats.is_preserved) }} - (<b>{{ "{:.1f}".format(container_stats.is_preserved/container_stats.total*100) }}%</b>) + {{ "{:,}".format(container._stats.total) }} total + {% if container._stats.total >= 1 %} + <br>{{ "{:,}".format(container._stats.is_preserved) }} + (<b>{{ "{:.1f}".format(container._stats.is_preserved/container._stats.total*100) }}%</b>) preserved or archived - <br>{{ "{:,}".format(container_stats.in_web) }} - (<b>{{ "{:.1f}".format(container_stats.in_web/container_stats.total*100) }}%</b>) + <br>{{ "{:,}".format(container._stats.in_web) }} + (<b>{{ "{:.1f}".format(container._stats.in_web/container._stats.total*100) }}%</b>) fulltext available to read {% endif %} </div><div class="ui segment attached"> {% endif %} -{% if (container.es and container.es != None) %} +{% if (container._es and container._es != None) %} <b>Directory Listings</b><br> - {% if container.es.in_doaj == True %} + {% if container._es.in_doaj == True %} <i class="icon check green"></i> In <a href="https://doaj.org/toc/{{ container.issnl }}">DOAJ</a><br> - {% elif container.es.in_doaj == False %} + {% elif container._es.in_doaj == False %} <i class="icon times grey"></i> Not in <a href="https://doaj.org">DOAJ</a><br> {% endif %} - {% if container.es.in_road == True %} + {% if container._es.in_road == True %} <i class="icon check green"></i> In <a href="http://road.issn.org/issn/{{ container.issnl }}">ISSN ROAD</a><br> - {% elif container.es.in_road == False %} + {% elif container._es.in_road == False %} <i class="icon times grey"></i> Not in <a href="https://road.issn.org">ISSN ROAD</a><br> {% endif %} - {% if container.es.in_kbart == True %} + {% if container._es.in_kbart == True %} <i class="icon check green"></i> In <a href="https://thekeepers.org/purl/issn/{{ container.issnl }}">Keepers Registery</a><br> - {% elif container.es.in_kbart == False %} + {% elif container._es.in_kbart == False %} <i class="icon times grey"></i> Not in <a href="https://thekeepers.org/journals?query={{ container.issnl }}">Keepers Registry</a><br> {% endif %} |