home · contact · privacy
More refactor, and include previously forgotten decks.tpl.
[guiltcards] / views / card.tpl
index 8e89f50babb4892d45d8f26486c4a6cc993077d1..f946b210ab7fea3945979d7d53ca9a8f42d6f46e 100644 (file)
@@ -1,22 +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 id="card">
-    <h1 id="title">{{ title }}</h1>
-    <p id="prompt">{{ prompt }}</p>
-    <ul id="answers">
-    % for answer in answers:
-      <li>{{ answer }}</li>
-    % end
-    <ul/>
-  </div>
-<a href="{{ web_path }}/cards">back to overview</a>
+% include('_card.tpl')
+<a href="{{ web_path }}/decks/{{deck_id}}/cards">back to overview</a>
 </body>
-</html>
+% include('_meta_foot.tpl')