diff options
author | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-24 14:45:43 +0100 |
---|---|---|
committer | Stefan Wintermeyer <stefan.wintermeyer@amooma.de> | 2013-01-24 14:45:43 +0100 |
commit | 2d6ebf19e5cea45dd714f92a64b1b81e1200a811 (patch) | |
tree | 37e4796c11a5c3b433308cf53e320421b87e6a4b /app/views | |
parent | e024c99b6ffeb725cf73ebf8b7b55957f36772f5 (diff) |
Create a central docu page which gets a link in the navbar.
Diffstat (limited to 'app/views')
-rw-r--r-- | app/views/layouts/_navbar.html.haml | 13 | ||||
-rw-r--r-- | app/views/page/help.de.html.haml (renamed from app/views/page/beginners_intro.de.html.haml) | 0 | ||||
-rw-r--r-- | app/views/page/help.html.haml (renamed from app/views/page/beginners_intro.html.haml) | 0 |
3 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 diff --git a/app/views/page/beginners_intro.de.html.haml b/app/views/page/help.de.html.haml index 5eef135..5eef135 100644 --- a/app/views/page/beginners_intro.de.html.haml +++ b/app/views/page/help.de.html.haml diff --git a/app/views/page/beginners_intro.html.haml b/app/views/page/help.html.haml index dadd99f..dadd99f 100644 --- a/app/views/page/beginners_intro.html.haml +++ b/app/views/page/help.html.haml |