From a565e649898c629874ef812a13806b1c384f68e4 Mon Sep 17 00:00:00 2001 From: Nicolas BERNSTEIN Date: Sun, 18 Sep 2011 12:07:29 +0200 Subject: Added study program. Yay! --- tpl/deck/view.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'tpl/deck') 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 'add card'; } -echo '

Description

'; echo $deck["comment"]; -echo '

Cards

'; +if ($can_start_study) { + echo '

>> start studying this deck <<

'; +} + echo ''; foreach ($cards as $card) { echo '
'; @@ -22,7 +24,7 @@ foreach ($cards as $card) { echo '
'; } echo '#' . $card["number"] . ": " . $card["name"] . ''; - echo '
' . $card['text']; + echo $card['text']; echo ''; } if ($can_edit) -- cgit v1.2.3