summaryrefslogtreecommitdiff
path: root/app/views/layouts/_app_menu.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-03-16 01:31:46 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2012-03-16 01:31:46 +0200
commit7f76d6cfee7f95e6d89691431540e8d948ca60ec (patch)
tree18cb56bc5c89c5535eee73bce9921023bff3b7ac /app/views/layouts/_app_menu.html.haml
parent5d2bd5ec3a6d1c9ceb985e0af684f162926b0555 (diff)
downloadgitlab-ce-7f76d6cfee7f95e6d89691431540e8d948ca60ec.tar.gz
counters for dashboard panel
Diffstat (limited to 'app/views/layouts/_app_menu.html.haml')
-rw-r--r--app/views/layouts/_app_menu.html.haml8
1 files changed, 6 insertions, 2 deletions
diff --git a/app/views/layouts/_app_menu.html.haml b/app/views/layouts/_app_menu.html.haml
index 60ff4854843..e6a6ebf0612 100644
--- a/app/views/layouts/_app_menu.html.haml
+++ b/app/views/layouts/_app_menu.html.haml
@@ -2,6 +2,10 @@
= render "layouts/const_menu_links"
= link_to "Projects", projects_path, :class => "#{"current" if current_page?(projects_path)}"
= link_to "Search", search_path, :class => "#{"current" if current_page?(search_path)}"
- = link_to "Issues", dashboard_issues_path, :class => "#{"current" if current_page?(dashboard_issues_path)}", :id => "issues_slide"
- = link_to "Requests", dashboard_merge_requests_path, :class => "#{"current" if current_page?(dashboard_merge_requests_path)}", :id => "merge_requests_slide"
+ = link_to dashboard_issues_path, :class => "#{"current" if current_page?(dashboard_issues_path)}", :id => "issues_slide" do
+ Issues
+ %span.count= current_user.assigned_issues.opened.count
+ = link_to dashboard_merge_requests_path, :class => "#{"current" if current_page?(dashboard_merge_requests_path)}", :id => "merge_requests_slide" do
+ Requests
+ %span.count= current_user.cared_merge_requests.count
= link_to "Help", help_path, :class => "#{"current" if controller.controller_name == "help"}"