home · contact · privacy
More refactor, and include previously forgotten decks.tpl.
[guiltcards] / views / card.tpl
index 31749f4b2ee0b42f55844a4db71fc91fad191fce..f946b210ab7fea3945979d7d53ca9a8f42d6f46e 100644 (file)
@@ -1,30 +1,9 @@
-<!DOCTYPE HTML>
-<html>
+% include('_meta_head.tpl')
 <style>
-  .card {
-      box-sizing: border-box;
-      border: 30px solid #aaaaaa;
-      width: 200px;
-      height: 400px; }
+% include('_card.css')
 </style>
 <body>
-  <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>
+% include('_card.tpl')
 <a href="{{ web_path }}/decks/{{deck_id}}/cards">back to overview</a>
 </body>
-</html>
+% include('_meta_foot.tpl')