summaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates/release_view.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_view.html
parent7b5d67557abdb019e0daf04e71f2e5193ea8f6f3 (diff)
downloadfatcat-9b47de41a5666b614db3fead897fab46784e9b02.tar.gz
fatcat-9b47de41a5666b614db3fead897fab46784e9b02.zip
truncate long author lists
Diffstat (limited to 'python/fatcat_web/templates/release_view.html')
-rw-r--r--python/fatcat_web/templates/release_view.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/python/fatcat_web/templates/release_view.html b/python/fatcat_web/templates/release_view.html
index 37d541ba..b2ee524f 100644
--- a/python/fatcat_web/templates/release_view.html
+++ b/python/fatcat_web/templates/release_view.html
@@ -11,13 +11,15 @@
<div class="sub header"><code>release {{ release.ident }}</code></div></h1>
<p style="font-size: larger;">
{% if authors != [] %} by {% endif %}
- {% for contrib in authors %}
+ {% for contrib in authors[:12] %}
{% if contrib.creator_id %}
<b><a href="/creator/{{contrib.creator_id}}">{{ contrib.raw_name }}</a></b>{% if not loop.last %}, {% endif %}
{% else %}
{% if contrib.raw_name != None %}{{ contrib.raw_name }}{% else %}<i>Unknown</i>{% endif %}{% if not loop.last %}, {% endif %}
{% endif %}
{% endfor %}
+ {% if authors|count > 12 %} <b>(+{{ authors|length - 12 }} others)</b>
+ {% endif %}
</div>
</div>
@@ -85,7 +87,7 @@
{% if release.contribs|length > 0 %}
<div class="ui accordion">
<div class="title">
- <i class="dropdown icon"></i>All Contributors
+ <i class="dropdown icon"></i>All Contributors ({{ release.contribs|length }})
</div><div class="content">
<table class="ui basic compact table">
<tbody>