aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates/release_search.html
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2019-03-04 16:21:49 -0800
committerBryan Newbold <bnewbold@robocracy.org>2019-03-04 16:21:49 -0800
commit9b47de41a5666b614db3fead897fab46784e9b02 (patch)
treeaa02670cadee5f1e09ef52f19396428662f3504e /python/fatcat_web/templates/release_search.html
parent7b5d67557abdb019e0daf04e71f2e5193ea8f6f3 (diff)
downloadfatcat-9b47de41a5666b614db3fead897fab46784e9b02.tar.gz
fatcat-9b47de41a5666b614db3fead897fab46784e9b02.zip
truncate long author lists
Diffstat (limited to 'python/fatcat_web/templates/release_search.html')
-rw-r--r--python/fatcat_web/templates/release_search.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/fatcat_web/templates/release_search.html b/python/fatcat_web/templates/release_search.html
index 273228a1..783f4dc4 100644
--- a/python/fatcat_web/templates/release_search.html
+++ b/python/fatcat_web/templates/release_search.html
@@ -27,7 +27,9 @@
&nbsp;&nbsp;<a href="{{ paper.best_pdf_url }}" class="ui label small"><i class="file icon"></i>fulltext</a>
{% endif %}
</h4>
- <h5 style="margin-top: 4px; margin-bottom: 4px; font-size: 1em;">{{ ", ".join(paper.contrib_names) }}</h5>
+ <h5 style="margin-top: 4px; margin-bottom: 4px; font-size: 1em;">{{ ", ".join(paper.contrib_names[:12] }}
+ {% if paper.contrib_names|length > 12 %}(+{{ paper.contrib_names|length - 12 }} others){% endif %}
+ </h5>
{% if paper.doi %}
DOI: <a href="https://doi.org/{{paper.doi }}" style="color: green;">{{ paper.doi }}</a>
- {{ paper.release_type }}