summaryrefslogtreecommitdiff
path: root/app/views/layouts/_navbar.html.haml
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-24 14:45:43 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-24 14:45:43 +0100
commit2d6ebf19e5cea45dd714f92a64b1b81e1200a811 (patch)
tree37e4796c11a5c3b433308cf53e320421b87e6a4b /app/views/layouts/_navbar.html.haml
parente024c99b6ffeb725cf73ebf8b7b55957f36772f5 (diff)
Create a central docu page which gets a link in the navbar.
Diffstat (limited to 'app/views/layouts/_navbar.html.haml')
-rw-r--r--app/views/layouts/_navbar.html.haml13
1 files changed, 10 insertions, 3 deletions
diff --git a/app/views/layouts/_navbar.html.haml b/app/views/layouts/_navbar.html.haml
index 7ef6523..c2d9946 100644
--- a/app/views/layouts/_navbar.html.haml
+++ b/app/views/layouts/_navbar.html.haml
@@ -9,9 +9,16 @@
%span.icon-bar
%span.icon-bar
- - if current_user && current_user.sip_accounts.any?
- .nav-collapse.collapse
- %ul.nav
+ .nav-collapse.collapse
+ %ul.nav
+ - if current_user && GemeinschaftSetup.any? && current_user.admin?
+ - if current_page?(page_help_path)
+ %li.active
+ =link_to 'Admin-Doku', page_help_path
+ - else
+ %li
+ =link_to 'Admin-Doku', page_help_path
+ - if current_user && current_user.sip_accounts.any?
%li
%a{:href => sip_account_call_histories_path(current_user.sip_accounts.first)}
%i.icon-list-alt.icon-white