diff options
author | Robert Speicher <rspeicher@gmail.com> | 2012-09-26 16:14:17 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2012-09-26 16:38:28 -0400 |
commit | 36f68140d1fcd89ed6bd92ac69cf13c566db63d5 (patch) | |
tree | f674b473d24680a5511dab6008760aa9c33e932e /app/views/layouts/admin.html.haml | |
parent | f064c84019f7414cb9cfa9e49fb735dba7f495df (diff) | |
download | gitlab-ce-36f68140d1fcd89ed6bd92ac69cf13c566db63d5.tar.gz |
Replace various "active tab" checks with nav_link
Also remove now-unused tab_class helper
Diffstat (limited to 'app/views/layouts/admin.html.haml')
-rw-r--r-- | app/views/layouts/admin.html.haml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/app/views/layouts/admin.html.haml b/app/views/layouts/admin.html.haml index 6af0f641fc4..dbb6939dd61 100644 --- a/app/views/layouts/admin.html.haml +++ b/app/views/layouts/admin.html.haml @@ -6,17 +6,17 @@ = render "layouts/head_panel", title: "Admin area" .container %ul.main_menu - %li.home{class: tab_class(:admin_root)} + = nav_link(controller: :dashboard, html_options: {class: 'home'}) do = link_to "Stats", admin_root_path - %li{class: tab_class(:admin_projects)} + = nav_link(controller: :projects) do = link_to "Projects", admin_projects_path - %li{class: tab_class(:admin_users)} + = nav_link(controller: :users) do = link_to "Users", admin_users_path - %li{class: tab_class(:admin_logs)} + = nav_link(controller: :logs) do = link_to "Logs", admin_logs_path - %li{class: tab_class(:admin_hooks)} + = nav_link(controller: :hooks) do = link_to "Hooks", admin_hooks_path - %li{class: tab_class(:admin_resque)} + = nav_link(controller: :resque) do = link_to "Resque", admin_resque_path .content= yield |