summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-07-27 17:01:58 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-07-27 17:01:58 -0700
commitd0ca0f9d70858218c5fc5625ca08c349ec06121c (patch)
treec554db35b7a89fdda271f49764497498fcfe7040 /python/fatcat_web/templates
parentcb3d10a06c0166c4eb8ec2d48852e4bfc236ef27 (diff)
downloadfatcat-d0ca0f9d70858218c5fc5625ca08c349ec06121c.tar.gz
fatcat-d0ca0f9d70858218c5fc5625ca08c349ec06121c.zip
refs: show up to 8 authors in summary tables
Diffstat (limited to 'python/fatcat_web/templates')
-rw-r--r--python/fatcat_web/templates/entity_macros.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/python/fatcat_web/templates/entity_macros.html b/python/fatcat_web/templates/entity_macros.html
index ac2b5a15..37bb2d90 100644
--- a/python/fatcat_web/templates/entity_macros.html
+++ b/python/fatcat_web/templates/entity_macros.html
@@ -395,7 +395,7 @@ yellow
<b>[{{ release.release_type or "unknown-type" }}]</b>
{% endif %}
{% if release.contribs %}<br>{% endif %}
- {% for contrib in release.contribs[:5] %}
+ {% for contrib in release.contribs[:8] %}
{% if contrib.creator %}
<a href="/contib/{{ contrib.creator.ident }}" style="color: black;">{{ contrib.creator.display_name }}</a>
{% else %}
@@ -403,7 +403,7 @@ yellow
{%- endif %}
{%- if not loop.last %}, {% endif %}
{% endfor %}
- {% if release.contribs | length > 5 %} <i>(+ more)</i> {%endif %}
+ {% 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 }} &nbsp;{% endif %}
{% if release.container %}
@@ -449,12 +449,12 @@ yellow
<b>{{ csl.title }}</b>
{% if csl.title and csl.author %}<br>{% endif %}
{% if csl.author %}
- {% for author in csl.author[:5] %}
+ {% for author in csl.author[:8] %}
{# TODO: other name variants? #}
{{ author.name }}
{%- if not loop.last %}, {% endif %}
{% endfor %}
- {% if csl.author | length > 5 %} <i>(+ more)</i> {%endif %}
+ {% if csl.author | length > 8 %} <i>(+ more)</i> {%endif %}
{% endif %}
{% if csl.issued or csl["container-title"] %}<br>{% endif %}