summaryrefslogtreecommitdiff
path: root/templates/card/card_list.twig
blob: b6d8bbe46fc9194f140d3dc208c0d5dc713f22d2 (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
{% extends 'card/card.twig' %}

{% block pagetitle %}
List
{% endblock %}
{% block pagecontent %}
  {% for card in cards %}
    <div class="content">
      <div class="row">
        <div class="column column-5">
          <button class="vote"><i class="fa fa-thumbs-o-up" aria-hidden="true"></i></button>
          {{ card.getVotesTotal() }}
          <button class="vote"><i class="fa fa-thumbs-o-down" aria-hidden="true"></i></button>
        </div>
        <div class="column column-95">
          <table>
            <thead>
              <tr>
                {% for meta in card.getAllMeta() %}
                  <th>{{ meta.key }}</th>
                {% endfor %}
              </tr>
            </thead>
            <tbody>
              <tr>
                {% for meta in card.getAllMeta() %}
                  <td>{{ meta.value }}</td>
                {% endfor %}
              </tr>
            </tbody>
          </table>
          <button onclick="location.href='/card/{{ card.id }}'">Card</button>
          <button onclick="location.href='/card/{{ card.id }}/artworks'">Artworks</button>
        </div>
      </div>
    </div>
  {% endfor %}
{% endblock %}