diff options
author | Felipe Artur <felipefac@gmail.com> | 2017-06-09 15:53:32 -0300 |
---|---|---|
committer | Felipe Artur <felipefac@gmail.com> | 2017-06-13 12:14:40 -0300 |
commit | e891d5d9ed4b005eeda33df2d9dbdbc41335011a (patch) | |
tree | efb661382bc210792fcbc7c256c34460ae3b7d9d /app/views/shared/milestones/_sidebar.html.haml | |
parent | 18a54e972cabd72e8e69c126128aa8fd2bc317e5 (diff) | |
download | gitlab-ce-e891d5d9ed4b005eeda33df2d9dbdbc41335011a.tar.gz |
Improve method names and add more specsissue_20900
Diffstat (limited to 'app/views/shared/milestones/_sidebar.html.haml')
-rw-r--r-- | app/views/shared/milestones/_sidebar.html.haml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/app/views/shared/milestones/_sidebar.html.haml b/app/views/shared/milestones/_sidebar.html.haml index e75edd750ff..9bb87640319 100644 --- a/app/views/shared/milestones/_sidebar.html.haml +++ b/app/views/shared/milestones/_sidebar.html.haml @@ -68,10 +68,10 @@ .sidebar-collapsed-icon %strong = icon('hashtag', 'aria-hidden': 'true') - %span= milestone.issues_visible_to_user(current_user).length + %span= milestone.issues_visible_to_user(current_user).count .title.hide-collapsed Issues - %span.badge= milestone.issues_visible_to_user(current_user).length + %span.badge= milestone.issues_visible_to_user(current_user).count - if project && can?(current_user, :create_issue, project) = link_to new_namespace_project_issue_path(project.namespace, project, issue: { milestone_id: milestone.id }), class: "pull-right", title: "New Issue" do New issue @@ -79,11 +79,11 @@ %span.milestone-stat = link_to milestones_browse_issuables_path(milestone, type: :issues) do Open: - = milestone.issues_visible_to_user(current_user).opened.length + = milestone.issues_visible_to_user(current_user).opened.count %span.milestone-stat = link_to milestones_browse_issuables_path(milestone, type: :issues, state: 'closed') do Closed: - = milestone.issues_visible_to_user(current_user).closed.length + = milestone.issues_visible_to_user(current_user).closed.count .block.merge-requests .sidebar-collapsed-icon |