collections.inc 878 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
<div class="ui seven doubling cards">
  {% for row in models.collections %}
  <div class="ui card">
    {% if row.logo %}
    <a class="ui image" href="{{row.uri.value}}">
      <img src="{{row.logo.value}}"/>
    </a>
    {% else %}
    <a href="{{row.uri.value}}" class="ui small image">
      <img data-src="holder.js/200x100">
    </a>{% endif %}
    <div class="middle aligned content">
      <a class="header" href="{{row.uri.value}}">{% if row.title && row.title.value != "" %}{{row.title.value}}{% else %}{% if row.label && row.label.value != "" %}{{row.label.value}}{% else %} {{row.identifier.value}}{%endif%}{%endif%}</a>
      <!--{% if row.description %}
      <div class="description">
        <p>{{row.description.value|truncatewords:25}}</p>
        <a href="{{row.uri.value}}">se mer</a>
      </div>
      {%endif%}-->
    </div>
  </div>
  {% endfor %}
</div>