diff options
author | Jonathan Tschanter <jmtw@tutanota.de> | 2022-01-21 15:13:35 +0100 |
---|---|---|
committer | Jonathan Tschanter <jmtw@tutanota.de> | 2022-01-21 15:13:35 +0100 |
commit | 432bba3dee1d9be25b9626ac45115929a6422961 (patch) | |
tree | 22964fb4b3f55aa1594067af238344f150d4d9ad /templates/card/card_list.twig | |
parent | 2bde1b0660585e16116fbd12c86b53e886b6f3be (diff) |
Add layout based on list entries
Diffstat (limited to 'templates/card/card_list.twig')
-rw-r--r-- | templates/card/card_list.twig | 56 |
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 %} |