summaryrefslogtreecommitdiff
path: root/app/views/layouts/admin.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-07-03 20:52:48 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-07-03 20:52:48 +0300
commit031ae7756e11f3aa3c53b81b408abdd762eef42a (patch)
tree0cc35d79a22cedb4fffabdb80f21012e8441b5df /app/views/layouts/admin.html.haml
parent51f174b97f686397bc7299c16a64fda14d5bc718 (diff)
downloadgitlab-ce-031ae7756e11f3aa3c53b81b408abdd762eef42a.tar.gz
Refactored navigation
Diffstat (limited to 'app/views/layouts/admin.html.haml')
-rw-r--r--app/views/layouts/admin.html.haml17
1 files changed, 11 insertions, 6 deletions
diff --git a/app/views/layouts/admin.html.haml b/app/views/layouts/admin.html.haml
index bac3e716861..fee77f1f11d 100644
--- a/app/views/layouts/admin.html.haml
+++ b/app/views/layouts/admin.html.haml
@@ -5,11 +5,16 @@
= render "layouts/flash"
= render "layouts/head_panel", :title => "Admin area"
.container
- %nav.main_menu
- = link_to "Stats", admin_root_path, :class => "home #{'current' if controller.controller_name == "dashboard"}"
- = link_to "Projects", admin_projects_path, :class => ('current' if controller.controller_name == "projects")
- = link_to "Users", admin_users_path, :class => ('current' if controller.controller_name == 'users')
- = link_to "Emails", admin_emails_path, :class => ('current' if controller.controller_name == 'mailer')
- = link_to "Resque", admin_resque_path, :class => ('current' if controller.controller_name == 'resque')
+ %ul.main_menu
+ %li.home{:class => tab_class(:admin_root)}
+ = link_to "Stats", admin_root_path
+ %li{:class => tab_class(:admin_projects)}
+ = link_to "Projects", admin_projects_path
+ %li{:class => tab_class(:admin_users)}
+ = link_to "Users", admin_users_path
+ %li{:class => tab_class(:admin_emails)}
+ = link_to "Emails", admin_emails_path
+ %li{:class => tab_class(:admin_resque)}
+ = link_to "Resque", admin_resque_path
.content= yield