summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--application/views/header.php11
-rw-r--r--application/views/user/index.php4
-rw-r--r--application/views/user/nav.php10
3 files changed, 21 insertions, 4 deletions
diff --git a/application/views/header.php b/application/views/header.php
index 0a717d6dc..7ed605bf3 100644
--- a/application/views/header.php
+++ b/application/views/header.php
@@ -56,9 +56,14 @@ if (is_cli_client() && !isset($force_full_html)) {
<?php if(isset($username) && $username) { ?>
<li><a href="<?php echo site_url("file/index") ?>"><i class="icon-pencil icon-white"></i> New</a></li>
<li><a href="<?php echo site_url("file/upload_history") ?>"><i class="icon-book icon-white"></i> History</a></li>
- <?php if(auth_driver_function_implemented("can_register_new_users")) { ?>
- <li><a href="<?php echo site_url("user/invite") ?>"><i class="icon-plus icon-white"></i> Invite</a></li>
- <?php } ?>
+ <li class="dropdown">
+ <a href="<?php echo site_url("user/index"); ?>" class="dropdown-toggle" data-toggle="dropdown">
+ <i class="icon-user icon-white"></i> Account <b class="caret"></b>
+ </a>
+ <ul class="dropdown-menu">
+ <?php include "user/nav.php"; ?>
+ </ul>
+ </li>
<?php } ?>
</ul>
</div>
diff --git a/application/views/user/index.php b/application/views/user/index.php
index 891ecc083..9e6f48116 100644
--- a/application/views/user/index.php
+++ b/application/views/user/index.php
@@ -1 +1,3 @@
-Momentan eingeloggt als "<?php echo $username; ?>".<br />
+<ul class="nav">
+<?php include "nav.php"; ?>
+</ul>
diff --git a/application/views/user/nav.php b/application/views/user/nav.php
new file mode 100644
index 000000000..26898fde8
--- /dev/null
+++ b/application/views/user/nav.php
@@ -0,0 +1,10 @@
+<?php if(auth_driver_function_implemented("can_register_new_users")) { ?>
+<li><a href="<?php echo site_url("user/invite") ?>"><i class="icon-plus icon-black"></i> Invite</a></li>
+<?php } ?>
+
+<li><a href="<?php echo site_url("user/profile") ?>"><i class="icon-user icon-black"></i> Profile</a></li>
+
+<?php if(auth_driver_function_implemented("can_reset_password")) { ?>
+<li><a href="<?php echo site_url("user/reset_password") ?>"><i class="icon-lock icon-black"></i> Change password</a></li>
+<?php } ?>
+