depiction.inc 670 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
<span class="header">Avbildet på</span>
  <div class="ui cards">
    {% for row in models.depiction %}
    {% ifchanged row.uri.value %}
    <div class="ui card">
      <a style="min-height:250px; width: 100%;" class="ui image" href="{{ row.uri.value }}">
        <img {% if row.img %}src="{{row.img.value}}"{%else%}data-src="holder.js/350x250"{%endif%}  alt="">
      </a>
      <div class="extra content">
        <a href="{{ row.uri.value }}"><strong>{{ row.label.value }}</strong></a>
        {% if row.description %}<p>{{row.description.value|truncatewords:15}}</p>{% endif %}        
      </div>
    </div>
      {% endifchanged %}
      {% endfor %}
  </div>