home
·
contact
·
privacy
projects
/
guiltcards
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Differentiate card data processing between action and guilt cards.
[guiltcards]
/
views
/
card.tpl
diff --git
a/views/card.tpl
b/views/card.tpl
index cb121e64444ddeb714f09b1ac5a5d3bfc433beb7..eeae380755efa41a3c539d9bfb8404209795712f 100644
(file)
--- a/
views/card.tpl
+++ b/
views/card.tpl
@@
-1,21
+1,29
@@
<!DOCTYPE HTML>
<html>
<style>
<!DOCTYPE HTML>
<html>
<style>
-
#
card {
+
.
card {
box-sizing: border-box;
border: 30px solid #aaaaaa;
width: 200px;
height: 400px; }
</style>
<body>
box-sizing: border-box;
border: 30px solid #aaaaaa;
width: 200px;
height: 400px; }
</style>
<body>
- <div id="card">
- <h1 id="title">{{ title }}</h1>
- <p id="prompt">{{ prompt }}</p>
+ <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 answers:
<li>{{ answer }}</li>
% end
<ul/>
<ul id="answers">
% for answer in answers:
<li>{{ answer }}</li>
% end
<ul/>
+ % end
+ % if card_type == 'action':
+ <h1 id="title">ACTION CARD<br />{{ title }}</h1>
+ % for paragraph in paragraphs:
+ <p>{{ paragraph }}</p>
+ % end
+ % end
</div>
<a href="{{ web_path }}/decks/{{deck_id}}/cards">back to overview</a>
</body>
</div>
<a href="{{ web_path }}/decks/{{deck_id}}/cards">back to overview</a>
</body>