diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2019-06-10 17:46:47 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2019-06-13 14:36:59 -0700 |
commit | 210f39a845e676e162eaa73d7ca401a8d3d89bcf (patch) | |
tree | ddeea7c9f1785a5f9553d942ede30645bf133a77 /python/fatcat_web/templates/release_contribs.html | |
parent | 682f263e8053aab9ecce427eee9f3c589816941b (diff) | |
download | fatcat-210f39a845e676e162eaa73d7ca401a8d3d89bcf.tar.gz fatcat-210f39a845e676e162eaa73d7ca401a8d3d89bcf.zip |
entity view tweaks
Diffstat (limited to 'python/fatcat_web/templates/release_contribs.html')
-rw-r--r-- | python/fatcat_web/templates/release_contribs.html | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/python/fatcat_web/templates/release_contribs.html b/python/fatcat_web/templates/release_contribs.html new file mode 100644 index 00000000..21df2339 --- /dev/null +++ b/python/fatcat_web/templates/release_contribs.html @@ -0,0 +1,34 @@ +{% set entity = release %} +{% set entity_view = "contribs" %} +{% set entity_type = "release" %} +{% import "entity_macros.html" as entity_macros %} +{% extends "entity_base.html" %} + +{% block entity_main %} + +{% if release.contribs|length > 0 %} +<table class="ui basic compact table"> +<tbody> +{% for contrib in release.contribs %} + <tr><td class="collapsing">{% if contrib.index or contrib.index == 0 %} {{ contrib.index + 1 }}{% endif %} + <td><span itemprop="author"> + {% if contrib.creator_id %} + <a href="/creator/{{contrib.creator_id}}">{{ contrib.raw_name or 'unknown' }}</a> + {% else %} + {{ contrib.raw_name or '' }} + {% endif %} + {% if contrib.surname %} + <code> + ({{ contrib.surname }}{% if contrib.given_name %}, {{ contrib.given_name }}{% endif %}) + </code> + {% endif %} + </span><br><i>{{ contrib.role or 'unknown' }}</i> +{% endfor %} +</tbody> +</table> +{% else %} +<p>No known contributors (authors, translators, etc). +{% endif %} + +{% endblock %} + |