summaryrefslogtreecommitdiff
path: root/templates/card/card_list.twig
diff options
context:
space:
mode:
Diffstat (limited to 'templates/card/card_list.twig')
-rw-r--r--templates/card/card_list.twig56
1 files changed, 28 insertions, 28 deletions
diff --git a/templates/card/card_list.twig b/templates/card/card_list.twig
index 1714fc8..b6d8bbe 100644
--- a/templates/card/card_list.twig
+++ b/templates/card/card_list.twig
@@ -4,35 +4,35 @@
List
{% endblock %}
{% block pagecontent %}
- <table>
- <thead>
- <tr>
- <th>ID</th>
- {% for meta in cards[0].getAllMeta() %}
- <th>{{ meta.key }}</th>
- {% endfor %}
- <th>Votes</th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- {% for card in cards %}
- <tr>
- <td>{{ card.id }}</td>
- {% for meta in card.getAllMeta() %}
- <td>{{ meta.value }}</td>
- {% endfor %}
- <td>
+ {% 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>Up</button>
- <button>Down</button>
- </td>
- <td>
+ <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>
- </td>
- </tr>
- {% endfor %}
- </tbody>
- </table>
+ </div>
+ </div>
+ </div>
+ {% endfor %}
{% endblock %}