diff options
author | Robert Speicher <rspeicher@gmail.com> | 2012-09-26 06:07:41 +0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2012-09-27 00:32:24 +0400 |
commit | 51c1e499006df02ff3dfc2a781457a01cc77550f (patch) | |
tree | f0d64d460af2138a590e9a9cd66afd73e6b59b01 /app/views/layouts | |
parent | adcc6a0b0e08158353627a8a900971aca07429bd (diff) |
Change active tab and nav class to "active"
The main nav used active, the sub nav used current. This normalizes it.
Diffstat (limited to 'app/views/layouts')
-rw-r--r-- | app/views/layouts/_project_menu.html.haml | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/app/views/layouts/_project_menu.html.haml b/app/views/layouts/_project_menu.html.haml index 13a4d037281..e2575646453 100644 --- a/app/views/layouts/_project_menu.html.haml +++ b/app/views/layouts/_project_menu.html.haml @@ -4,17 +4,15 @@ - if @project.repo_exists? - if can? current_user, :download_code, @project - %li{class: tree_tab_class} - = link_to project_tree_path(@project, @project.root_ref) do - Files + %li{class: current_controller?(:tree, :blob, :blame) ? 'active' : ''} + = link_to 'Files', project_tree_path(@project, @project.root_ref) %li{class: commit_tab_class} = link_to "Commits", project_commits_path(@project, @project.root_ref) - %li{class: tab_class(:network)} = link_to "Network", graph_project_path(@project) - if @project.issues_enabled - %li{class: tab_class(:issues)} + %li{class: current_controller?(:issues, :milestones, :labels) ? 'active' : ''} = link_to project_issues_filter_path(@project) do Issues %span.count.issue_counter= @project.issues.opened.count |