summaryrefslogtreecommitdiff
path: root/app/helpers/application_helper.rb
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2015-05-25 17:01:27 +0200
committerDouwe Maan <douwe@gitlab.com>2015-05-25 17:01:27 +0200
commitd25026a512cd0f8137ef6685a23a1d2ce898ffa7 (patch)
tree069422f7c9aec29aaf263629d0805f6003ad0443 /app/helpers/application_helper.rb
parentebe9c89082d1536d3f4c7e2071692277e7957d57 (diff)
downloadgitlab-ce-d25026a512cd0f8137ef6685a23a1d2ce898ffa7.tar.gz
Add Accepted and Rejected tabs to MR lists.
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index bcd400b7e7b..89dcdf57798 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -330,7 +330,12 @@ module ApplicationHelper
end
def state_filters_text_for(entity, project)
- entity_title = entity.to_s.humanize
+ titles = {
+ opened: "Open",
+ merged: "Accepted"
+ }
+
+ entity_title = titles[entity] || entity.to_s.humanize
count =
if project.nil?