summaryrefslogtreecommitdiff
path: root/tpl/deck/view.php
diff options
context:
space:
mode:
authorNicolas BERNSTEIN <alexis211@gmail.com>2011-09-18 12:07:29 +0200
committerNicolas BERNSTEIN <alexis211@gmail.com>2011-09-18 12:07:29 +0200
commita565e649898c629874ef812a13806b1c384f68e4 (patch)
treeafc03ed12ec7e82ce17bcfff5ba76440ff43eb97 /tpl/deck/view.php
parent8d9321225140a3db0b72796d4d0236d6cacfeb8a (diff)
downloadBits-a565e649898c629874ef812a13806b1c384f68e4.tar.gz
Bits-a565e649898c629874ef812a13806b1c384f68e4.zip
Added study program. Yay!
Diffstat (limited to 'tpl/deck/view.php')
-rw-r--r--tpl/deck/view.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/tpl/deck/view.php b/tpl/deck/view.php
index f54da3d..d15de4e 100644
--- a/tpl/deck/view.php
+++ b/tpl/deck/view.php
@@ -9,10 +9,12 @@ if ($can_edit) {
echo '<a href="addent-deck-' . $deck['id'] . '">add card</a></div>';
}
-echo '<h3>Description</h3>';
echo $deck["comment"];
-echo '<h3>Cards</h3>';
+if ($can_start_study) {
+ echo '<p style="text-align: center; font-size: 1.2em;"><a href="deckadd-study-' . $deckid . '">&gt;&gt; start studying this deck &lt;&lt;</a></p>';
+}
+
echo '<div class="ordering_links">' . filters_html_full() . '</div>';
foreach ($cards as $card) {
echo '<div class="study_card">';
@@ -22,7 +24,7 @@ foreach ($cards as $card) {
echo '</div>';
}
echo '<code>#' . $card["number"] . ": " . $card["name"] . '</code>';
- echo '<br />' . $card['text'];
+ echo $card['text'];
echo '</div>';
}
if ($can_edit)