summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web
diff options
context:
space:
mode:
Diffstat (limited to 'python/fatcat_web')
-rw-r--r--python/fatcat_web/templates/release_search.html7
-rw-r--r--python/fatcat_web/templates/release_view.html9
2 files changed, 13 insertions, 3 deletions
diff --git a/python/fatcat_web/templates/release_search.html b/python/fatcat_web/templates/release_search.html
index 9427663d..59411c62 100644
--- a/python/fatcat_web/templates/release_search.html
+++ b/python/fatcat_web/templates/release_search.html
@@ -77,10 +77,13 @@
<span class="ui grey basic label small">{{ paper.release_type }}</span>
{% endif %}
{% endif %}
+ {% if paper.withdrawn_status %}
+ <span class="ui red label small">{{ paper.withdrawn_status }}</span>
+ {% endif %}
{% if paper.release_stage and paper.release_stage != "published" %}
- <span class="ui pink label small">{{ paper.release_stage }}</span>
+ <span class="ui pink basic label small">{{ paper.release_stage }}</span>
{% elif not paper.release_stage %}
- <span class="ui red label small">unknown</span>
+ <span class="ui red basic label small">unknown</span>
{% endif %}
{% if paper.container_name %}
{% if paper.container_id %}
diff --git a/python/fatcat_web/templates/release_view.html b/python/fatcat_web/templates/release_view.html
index 5b019b3c..52f32fdc 100644
--- a/python/fatcat_web/templates/release_view.html
+++ b/python/fatcat_web/templates/release_view.html
@@ -253,7 +253,11 @@
{% if release.release_type or release.release_stage or release.release_year %}
<div class="ui segment attached">
<b>Type</b> &nbsp;<code>{{ release.release_type or 'unknown' }}</code><br>
- <b>Stage</b> &nbsp; <code>{{ release.release_stage or 'unknown' }}</code><br>
+ <b>Stage</b> &nbsp; <code>{{ release.release_stage or 'unknown' }}
+ {% if release.withdrawn_status %}
+ <strong style="color: red;">[{{ release.withdrawn_status }}]</strong>
+ {% endif %}
+ </code><br>
{% if release.release_date %}
<meta itemprop="datePublished" content="{{ release.release_date }}">
<b>Date</b> &nbsp; {{ release.release_date }}<br>
@@ -261,6 +265,9 @@
<meta itemprop="datePublished" content="{{ release.release_year }}">
<b>Year</b> &nbsp; {{ release.release_year }}<br>
{% endif %}
+ {% if release.withdrawn_date %}
+ <b>Withdrawn</b> &nbsp; {{ release.withdrawn_date }}<br>
+ {% endif %}
{% if release.version %}
<b>Version</b> &nbsp; <code>{{ release.version }}</code><br>
{% endif %}