diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-07-03 20:52:48 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-07-03 20:52:48 +0300 |
commit | 031ae7756e11f3aa3c53b81b408abdd762eef42a (patch) | |
tree | 0cc35d79a22cedb4fffabdb80f21012e8441b5df /app/views/layouts/profile.html.haml | |
parent | 51f174b97f686397bc7299c16a64fda14d5bc718 (diff) | |
download | gitlab-ce-031ae7756e11f3aa3c53b81b408abdd762eef42a.tar.gz |
Refactored navigation
Diffstat (limited to 'app/views/layouts/profile.html.haml')
-rw-r--r-- | app/views/layouts/profile.html.haml | 25 |
1 files changed, 18 insertions, 7 deletions
diff --git a/app/views/layouts/profile.html.haml b/app/views/layouts/profile.html.haml index 93f7c1827fb..dfe48d68240 100644 --- a/app/views/layouts/profile.html.haml +++ b/app/views/layouts/profile.html.haml @@ -5,12 +5,23 @@ = render "layouts/flash" = render "layouts/head_panel", :title => "Profile" .container - %nav.main_menu - = link_to "Profile", profile_path, :class => "home #{current_page?(:controller => "profile", :action => :show) ? "current" : nil}" - = link_to "Password", profile_password_path, :class => current_page?(:controller => "profile", :action => :password) ? "current" : nil - = link_to "Token", profile_token_path, :class => current_page?(:controller => "profile", :action => :token) ? "current" : nil - = link_to "Design", profile_design_path, :class => current_page?(:controller => "profile", :action => :design) ? "current" : nil - = link_to keys_path, :class => controller.controller_name == "keys" ? "current" : nil do - SSH Keys + %ul.main_menu + %li.home{:class => tab_class(:profile)} + = link_to "Profile", profile_path + + %li{:class => tab_class(:password)} + = link_to "Password", profile_password_path + + %li{:class => tab_class(:token)} + = link_to "Token", profile_token_path + + %li{:class => tab_class(:design)} + = link_to "Design", profile_design_path + + %li{:class => tab_class(:ssh_keys)} + = link_to keys_path do + SSH Keys + %span.count= current_user.keys.count + .content = yield |