home · contact · privacy
Differentiate card data processing between action and guilt cards.
[guiltcards] / views / card.tpl
1 <!DOCTYPE HTML>
2 <html>
3 <style>
4   .card {
5       box-sizing: border-box;
6       border: 30px solid #aaaaaa;
7       width: 200px;
8       height: 400px; }
9 </style>
10 <body>
11   <div class="card">
12     % if card_type == 'guilt':
13     <h1 id="title">GUILT CARD</h1>
14     <p id="prompt">Choose at least one of these guilts as your own:</p>
15     <ul id="answers">
16     % for answer in answers:
17       <li>{{ answer }}</li>
18     % end
19     <ul/>
20     % end
21     % if card_type == 'action':
22     <h1 id="title">ACTION CARD<br />{{ title }}</h1>
23     % for paragraph in paragraphs:
24     <p>{{ paragraph }}</p>
25     % end
26     % end
27   </div>
28 <a href="{{ web_path }}/decks/{{deck_id}}/cards">back to overview</a>
29 </body>
30 </html>