aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates/release_view_contribs.html
blob: f4969e32a9c6913c15bf016a5ac8884fe0e01419 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{% set release = entity %}
{% 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 and contrib.creator and contrib.creator.display_name %}
        <a href="/creator/{{contrib.creator_id}}">{{ contrib.creator.display_name }}</a>
      {% else %}
        {{ contrib.raw_name or '' }}
      {% endif %}

      {% if contrib.creator and contrib.creator.surname %}
        <code>&nbsp;
          ({{ contrib.creator.surname }}{% if contrib.creator.given_name %}, {{ contrib.creator.given_name }}{% endif %})
        </code>
      {% elif contrib.surname %}
        <code>&nbsp;
          ({{ 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 %}