diff options
author | Phil Hughes <me@iamphill.com> | 2017-07-31 14:50:13 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2017-07-31 14:50:13 +0300 |
commit | a9f56ae16873af40c7f1f753aee4528f0fbc2e8d (patch) | |
tree | f926c7bae7ce433af903f78fda76dc8cc8159012 /app | |
parent | a018a538ad4c8acd04b529e6709dc4eef01037fb (diff) | |
parent | 78829db98234ebe2cdf4264396352d6cc39d106d (diff) |
Merge branch 'win-newnav-badges-firefox' into 'master'
Fix badge positioning in new navigation for Firefox
Closes #35634
See merge request !13186
Diffstat (limited to 'app')
-rw-r--r-- | app/views/layouts/nav/_new_admin_sidebar.html.haml | 2 | ||||
-rw-r--r-- | app/views/layouts/nav/_new_group_sidebar.html.haml | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/app/views/layouts/nav/_new_admin_sidebar.html.haml b/app/views/layouts/nav/_new_admin_sidebar.html.haml index 95443de40c2..8db3e69aed4 100644 --- a/app/views/layouts/nav/_new_admin_sidebar.html.haml +++ b/app/views/layouts/nav/_new_admin_sidebar.html.haml @@ -91,8 +91,8 @@ = nav_link(controller: :abuse_reports) do = link_to admin_abuse_reports_path, title: "Abuse Reports" do %span - Abuse Reports %span.badge.count= number_with_delimiter(AbuseReport.count(:all)) + Abuse Reports - if akismet_enabled? = nav_link(controller: :spam_logs) do diff --git a/app/views/layouts/nav/_new_group_sidebar.html.haml b/app/views/layouts/nav/_new_group_sidebar.html.haml index a7897c09e79..4fd9e213ead 100644 --- a/app/views/layouts/nav/_new_group_sidebar.html.haml +++ b/app/views/layouts/nav/_new_group_sidebar.html.haml @@ -28,9 +28,9 @@ = nav_link(path: ['groups#issues', 'labels#index', 'milestones#index']) do = link_to issues_group_path(@group), title: 'Issues' do %span - Issues - issues = IssuesFinder.new(current_user, group_id: @group.id, state: 'opened').execute %span.badge.count= number_with_delimiter(issues.count) + Issues %ul.sidebar-sub-level-items = nav_link(path: 'groups#issues', html_options: { class: 'home' }) do @@ -51,9 +51,9 @@ = nav_link(path: 'groups#merge_requests') do = link_to merge_requests_group_path(@group), title: 'Merge Requests' do %span - Merge Requests - merge_requests = MergeRequestsFinder.new(current_user, group_id: @group.id, state: 'opened', non_archived: true).execute %span.badge.count= number_with_delimiter(merge_requests.count) + Merge Requests = nav_link(path: 'group_members#index') do = link_to group_group_members_path(@group), title: 'Members' do %span |