depicted.inc 1012 Bytes
Newer Older
Tarje.Lavik's avatar
Tarje.Lavik committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<span class="header">Avbildet</span>
  <div class="ui cards">
    {% for row in models.depicted %}
    {% ifchanged row.uri.value %}
    <div class="card">
      <div class="content">
        {% if row.img %}<img class="right floated tiny ui circular image" src="{{row.img.value}}" />{% endif %}
        <a class="header" href="{{ row.uri.value }}" >{{row.label.value}}</a>
        <div class="meta">
          <p>{% if row.birthDate.value || row.deathDate.value %}
          {% if row.birthDate %}<small>({{ row.birthDate.value }}{% else %}<small>(&nbsp;&nbsp;&nbsp;&nbsp;-{% endif %}
          {% if row.deathDate %}- {{ row.deathDate.value }})</small>{% else %}-&nbsp;&nbsp;&nbsp;&nbsp;)</small>{% endif %}
          {% else %}</small>{% endif %}</p>   
        </div>
        {% if row.description %}
        <div class="description">
          <p>{{row.description.value|truncatewords:15}}</p>
        </div>
        {% endif %}
      </div>
    </div>
      {% endifchanged %}
      {% endfor %}
  </div>