summaryrefslogtreecommitdiff
path: root/app/helpers/events_helper.rb
diff options
context:
space:
mode:
authorKushal Pandya <kushalspandya@gmail.com>2017-08-18 10:00:32 +0000
committerPhil Hughes <me@iamphill.com>2017-08-18 10:00:32 +0000
commitee42bfbe88d449619255f1cca008d86c937296f8 (patch)
tree07bf974c2b80bbec86b7d9b28b3176b511377059 /app/helpers/events_helper.rb
parent934342de7876b3f3bdde7c919a36ae0fcf735f38 (diff)
downloadgitlab-ce-ee42bfbe88d449619255f1cca008d86c937296f8.tar.gz
Add support for i18n on Project Activity Page
Diffstat (limited to 'app/helpers/events_helper.rb')
-rw-r--r--app/helpers/events_helper.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/helpers/events_helper.rb b/app/helpers/events_helper.rb
index 48c87dca217..722a65eeb98 100644
--- a/app/helpers/events_helper.rb
+++ b/app/helpers/events_helper.rb
@@ -35,18 +35,18 @@ module EventsHelper
[event.action_name, target].join(" ")
end
- def event_filter_link(key, tooltip)
+ def event_filter_link(key, text, tooltip)
key = key.to_s
active = 'active' if @event_filter.active?(key)
link_opts = {
- class: "event-filter-link",
+ class: "event-filter-link has-tooltip",
id: "#{key}_event_filter",
- title: "Filter by #{tooltip.downcase}"
+ title: tooltip
}
content_tag :li, class: active do
link_to request.path, link_opts do
- content_tag(:span, ' ' + tooltip)
+ content_tag(:span, ' ' + text)
end
end
end