From 24ab203a00354f768fc48e0786b21de4afcd9c4a Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 24 Dec 2018 15:17:25 -0800 Subject: implement release_year (and rustfmt) --- python/fatcat_web/templates/creator_view.html | 5 +++-- python/fatcat_web/templates/release_search.html | 4 ++-- python/fatcat_web/templates/release_view.html | 6 +++++- python/fatcat_web/templates/work_view.html | 4 +++- 4 files changed, 13 insertions(+), 6 deletions(-) (limited to 'python/fatcat_web') diff --git a/python/fatcat_web/templates/creator_view.html b/python/fatcat_web/templates/creator_view.html index 2ce01fb6..802ca4c9 100644 --- a/python/fatcat_web/templates/creator_view.html +++ b/python/fatcat_web/templates/creator_view.html @@ -34,8 +34,9 @@

This creator has contributed to:

diff --git a/python/fatcat_web/templates/release_search.html b/python/fatcat_web/templates/release_search.html index 18bda117..c6a6df60 100644 --- a/python/fatcat_web/templates/release_search.html +++ b/python/fatcat_web/templates/release_search.html @@ -31,8 +31,8 @@ {% if paper.doi %} DOI: {{ paper.doi }} - {{ paper.release_type }} - {% if paper.release_date %} - - {{ paper.release_date[:4] }} + {% if paper.release_year %} + - {{ paper.release_year }} {% endif %}
{% endif %} diff --git a/python/fatcat_web/templates/release_view.html b/python/fatcat_web/templates/release_view.html index 85492eba..fd86b7c9 100644 --- a/python/fatcat_web/templates/release_view.html +++ b/python/fatcat_web/templates/release_view.html @@ -22,7 +22,11 @@
-{% if release.release_date != None %}

Date (published): {{ release.release_date }}{% endif %} +{% if release.release_date != None %} +

Date (published): {{ release.release_date }} +{% elif release.release_year != None %} +

Date (published): {{ release.release_year }} +{% endif %} {% if release.pmid != None %}
PubMed:  {{ release.pmid }} {% endif %} diff --git a/python/fatcat_web/templates/work_view.html b/python/fatcat_web/templates/work_view.html index 87120e63..c767e1ba 100644 --- a/python/fatcat_web/templates/work_view.html +++ b/python/fatcat_web/templates/work_view.html @@ -34,7 +34,9 @@ still reference the same underlying "work". {% if releases != [] %}

-- cgit v1.2.3