home
·
contact
·
privacy
projects
/
guiltcards
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor.
[guiltcards]
/
views
/
card.tpl
diff --git
a/views/card.tpl
b/views/card.tpl
index eeae380755efa41a3c539d9bfb8404209795712f..31749f4b2ee0b42f55844a4db71fc91fad191fce 100644
(file)
--- a/
views/card.tpl
+++ b/
views/card.tpl
@@
-9,18
+9,18
@@
</style>
<body>
<div class="card">
</style>
<body>
<div class="card">
- % if card
_type
== 'guilt':
+ % 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">
<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
:
+ % for answer in
card["answers"]
:
<li>{{ answer }}</li>
% end
<ul/>
% end
<li>{{ answer }}</li>
% end
<ul/>
% end
- % if card
_type
== 'action':
- <h1 id="title">ACTION CARD<br />{{
title
}}</h1>
- % for paragraph in
paragraphs
:
+ % if card
["type"]
== 'action':
+ <h1 id="title">ACTION CARD<br />{{
card["title"]
}}</h1>
+ % for paragraph in
card["paragraphs"]
:
<p>{{ paragraph }}</p>
% end
% end
<p>{{ paragraph }}</p>
% end
% end