diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2021-07-27 18:48:14 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2021-07-27 18:48:14 -0700 |
commit | fa2ba60834cf3cb3edea05af3c1830e6fc0d5bcc (patch) | |
tree | 2ae1f69f218c2caf05bce736edc3c3b29665ce27 /python/fatcat_web/templates/entity_macros.html | |
parent | db88516724e3e0afc4f1c88356c0ee7f39fbb38c (diff) | |
download | fatcat-fa2ba60834cf3cb3edea05af3c1830e6fc0d5bcc.tar.gz fatcat-fa2ba60834cf3cb3edea05af3c1830e6fc0d5bcc.zip |
refs: several small improvements to web UI
Diffstat (limited to 'python/fatcat_web/templates/entity_macros.html')
-rw-r--r-- | python/fatcat_web/templates/entity_macros.html | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/python/fatcat_web/templates/entity_macros.html b/python/fatcat_web/templates/entity_macros.html index 37bb2d90..562b99d3 100644 --- a/python/fatcat_web/templates/entity_macros.html +++ b/python/fatcat_web/templates/entity_macros.html @@ -391,7 +391,7 @@ yellow {# this is useful for things like showing lists of releases in tables #} {% macro release_summary(release) %} <b><a href="/release/{{ release.ident }}">{{ release.title }}</a></b> - {% if release.release_type not in ["article-journal", "conference-paper"] %} + {% if release.release_type not in ["article-journal", "paper-conference"] %} <b>[{{ release.release_type or "unknown-type" }}]</b> {% endif %} {% if release.contribs %}<br>{% endif %} @@ -405,7 +405,14 @@ yellow {% endfor %} {% if release.contribs | length > 8 %} <i>(+ more)</i> {%endif %} {% if release.release_year or release.container or (release.extra and release.extra.container_name) %}<br>{% endif %} - {% if release.release_year %}{{ release.release_year }} {% endif %} + {% if release.release_year %} + {% if release.release_date %} + <span title="{{ release.release_date }}">{{ release.release_year }}</span> + {% else %} + {{ release.release_year }} + {% endif %} + + {% endif %} {% if release.container %} <a href="/container/{{ release.container.ident }}" style="color: black;"><i>{{ release.container.name }}</i></a> {% elif release.extra and release.extra.container_name %} |