aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--python/fatcat_web/templates/release_search.html4
-rw-r--r--python/fatcat_web/templates/release_view.html6
2 files changed, 7 insertions, 3 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 }}
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>