summaryrefslogtreecommitdiff
path: root/tpl/general
diff options
context:
space:
mode:
authorNicolas BERNSTEIN <alexis211@gmail.com>2011-09-17 19:36:41 +0200
committerNicolas BERNSTEIN <alexis211@gmail.com>2011-09-17 19:36:41 +0200
commit8d9321225140a3db0b72796d4d0236d6cacfeb8a (patch)
tree766e25ed98b86ed4cbf6d0517d9daaecc5ce3c18 /tpl/general
parentb6b341d949437c913fcce3d1a7c302945f67b22b (diff)
downloadBits-8d9321225140a3db0b72796d4d0236d6cacfeb8a.tar.gz
Bits-8d9321225140a3db0b72796d4d0236d6cacfeb8a.zip
Started working on a study program.
Diffstat (limited to 'tpl/general')
-rw-r--r--tpl/general/top.php9
1 files changed, 6 insertions, 3 deletions
diff --git a/tpl/general/top.php b/tpl/general/top.php
index e87e466..28a9658 100644
--- a/tpl/general/top.php
+++ b/tpl/general/top.php
@@ -24,9 +24,12 @@ if ($user['id'] == 0) {
<a href="notes">Notebooks</a>
<?php
if ($user['id'] != 0) {
- echo '<a href="image">Uploaded images</a>';
-} elseif ($user['priv'] >= $apps['image']['upload']) {
- echo '<a href="upload-image">Upload image</a>';
+ echo '<a href="image">Uploaded images</a><a href="study">My studies</a>';
+} else {
+ if ($user['priv'] >= $apps['image']['upload']) {
+ echo '<a href="upload-image">Upload image</a>';
+ }
+ echo '<a href="deck">Study decks</a>';
}
?>
</div>