aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates/entity_macros.html
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-06-24 18:45:08 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-07-23 10:55:09 -0700
commit61ed521cc40c1ee76692e9c4054e89fa63320600 (patch)
tree348857292b2c4d67ac181a9976b4c950ede8fbaa /python/fatcat_web/templates/entity_macros.html
parentc2395869ff7860bb2c7f080fd6c097e299ea58bf (diff)
downloadfatcat-61ed521cc40c1ee76692e9c4054e89fa63320600.tar.gz
fatcat-61ed521cc40c1ee76692e9c4054e89fa63320600.zip
improvements to fuzzy refs view
- fixes to release summary macro - show tab counts correctly by re-using generic entity get helper - table styling; 'prev' link - openlibrary access links - parse-and-match button for unmatched+unstructured refs
Diffstat (limited to 'python/fatcat_web/templates/entity_macros.html')
-rw-r--r--python/fatcat_web/templates/entity_macros.html17
1 files changed, 8 insertions, 9 deletions
diff --git a/python/fatcat_web/templates/entity_macros.html b/python/fatcat_web/templates/entity_macros.html
index 94770afb..24d1b6d0 100644
--- a/python/fatcat_web/templates/entity_macros.html
+++ b/python/fatcat_web/templates/entity_macros.html
@@ -394,30 +394,29 @@ yellow
{% if release.release_type not in ["article-journal", "conference-paper"] %}
<b>[{{ release.release_type or "unknown-type" }}]</b>
{% endif %}
-<br>
+ {% if release.contribs %}<br>{% endif %}
{% for contrib in release.contribs[:5] %}
{% if contrib.creator %}
- {{ contrib.creator.display_name }}
+ <a href="/contib/{{ contrib.creator.ident }}" style="color: black;">{{ contrib.creator.display_name }}</a>
{% else %}
{{ contrib.raw_name }}
- {% endif %}
- {% if not loop.last %}, {% endif %}
+ {%- endif %}
+ {%- if not loop.last %}, {% endif %}
{% endfor %}
- {% if release.contribs | length > 5 %}(+ more) {%endif %}
-<br>
+ {% if release.contribs | length > 5 %} <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 }} &nbsp;{% endif %}
{% if release.container %}
- <i>{{ release.container.name }}</i>
+ <a href="/container/{{ release.container.ident }}" style="color: black;"><i>{{ release.container.name }}</i></a>
{% elif release.extra and release.extra.container_name %}
<i>{{ release.extra.container_name }}</i>
{% endif %}
{% if release.release_stage != "published" %}
&nbsp;<span style="color: brown; font-weight: bold;">{{ release.release_stage or "unpublished" }}</span>
{% endif %}
-</small>
<br>
{% if release.version %}
- <span style="color:green">version:{{ release.release_year }}</span>&nbsp;
+ <span style="color:green">version:{{ release.version }}</span>&nbsp;
{% endif %}
{% if release.number %}
<span style="color:green">number:{{ release.number }}</span>&nbsp;