From 0ffed126e27e3b53f8b9c0a40b11206402f02eac Mon Sep 17 00:00:00 2001 From: Ariejan de Vroom Date: Thu, 8 Dec 2011 01:13:11 +0100 Subject: [PATCH] fixed tab highlighting for issues --- app/views/layouts/user.html.haml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/layouts/user.html.haml b/app/views/layouts/user.html.haml index e9dd18bc..5a936450 100644 --- a/app/views/layouts/user.html.haml +++ b/app/views/layouts/user.html.haml @@ -17,11 +17,11 @@ .project-sidebar .fixed %aside - = link_to issues_path, :class => current_page?(:controller => "user_issues", :action => "index") ? "current" : nil do + = link_to issues_path, :class => current_page?(issues_path) ? "current" : nil do Issues - unless current_user.assigned_issues.empty? %span{ :class => "number" }= current_user.assigned_issues.count - = link_to merge_requests_path, :class => current_page?(:controller => "user_merge_requests", :action => "index") ? "current" : nil do + = link_to merge_requests_path, :class => current_page?(merge_requests_path) ? "current" : nil do Merge Requests - unless current_user.assigned_merge_requests.empty? %span{ :class => "number" }= current_user.assigned_merge_requests.count