summaryrefslogtreecommitdiff
path: root/app/views/groups
diff options
context:
space:
mode:
authorRubén Dávila <rdavila84@gmail.com>2016-02-22 19:08:00 -0500
committerRubén Dávila <rdavila84@gmail.com>2016-03-04 22:37:03 -0500
commita056dfa9a077def4c3ffb958d3f86f7c9d7c2096 (patch)
treed244e57faf58dc2be08c1412c66874c694f8913e /app/views/groups
parent3231ea10b7319f6fe50c0ec1407ddaac69089641 (diff)
downloadgitlab-ce-a056dfa9a077def4c3ffb958d3f86f7c9d7c2096.tar.gz
Refactor GlobalMilestone queries.
Make methods return ActiveRecord Relations instead of Arrays.
Diffstat (limited to 'app/views/groups')
-rw-r--r--app/views/groups/milestones/_milestone.html.haml2
-rw-r--r--app/views/groups/milestones/show.html.haml2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/groups/milestones/_milestone.html.haml b/app/views/groups/milestones/_milestone.html.haml
index a20bf75bc39..50558d7dce8 100644
--- a/app/views/groups/milestones/_milestone.html.haml
+++ b/app/views/groups/milestones/_milestone.html.haml
@@ -8,7 +8,7 @@
.row
.col-sm-6
= link_to issues_group_path(@group, milestone_title: milestone.title) do
- = pluralize milestone.issue_count, 'Issue'
+ = pluralize milestone.issues_count, 'Issue'
&middot;
= link_to merge_requests_group_path(@group, milestone_title: milestone.title) do
= pluralize milestone.merge_requests_count, 'Merge Request'
diff --git a/app/views/groups/milestones/show.html.haml b/app/views/groups/milestones/show.html.haml
index 1233da85524..405df1d3433 100644
--- a/app/views/groups/milestones/show.html.haml
+++ b/app/views/groups/milestones/show.html.haml
@@ -58,7 +58,7 @@
%li.active
= link_to '#tab-issues', 'data-toggle' => 'tab' do
Issues
- %span.badge= @milestone.issue_count
+ %span.badge= @milestone.issues_count
%li
= link_to '#tab-merge-requests', 'data-toggle' => 'tab' do
Merge Requests