home · contact · privacy
More refactor, and include previously forgotten decks.tpl.
[guiltcards] / views / _card.tpl
diff --git a/views/_card.tpl b/views/_card.tpl
new file mode 100644 (file)
index 0000000..d5a541a
--- /dev/null
@@ -0,0 +1,17 @@
+<div class="card">
+  % if card["type"] == 'guilt':
+  <h1 id="title">GUILT CARD</h1>
+  <p id="prompt">Choose at least one of these guilts as your own:</p>
+  <ul id="answers">
+  % for answer in card["answers"]:
+    <li>{{ answer }}</li>
+  % end
+  <ul/>
+  % end
+  % if card["type"] == 'action':
+  <h1 id="title">ACTION CARD<br />{{ card["title"] }}</h1>
+  % for paragraph in card["paragraphs"]:
+  <p>{{ paragraph }}</p>
+  % end
+  % end
+</div>