From 70baf7956bb2a2e1e823309cae3adbda90e0e8ff Mon Sep 17 00:00:00 2001 From: Kevin Porras Date: Wed, 14 Oct 2020 14:05:15 -0600 Subject: [PATCH 1/4] refs #22670: Initial setup of the helper and required elements. --- app/helpers/issues_controller_helper.rb | 6 ++++++ .../redmine_mentions_suggestions/_edit_mentionable.html.erb | 1 + init.rb | 3 ++- lib/redmine_mentions_suggestions.rb | 5 +++++ lib/redmine_mentions_suggestions/hooks.rb | 2 +- 5 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 app/helpers/issues_controller_helper.rb create mode 100644 lib/redmine_mentions_suggestions.rb diff --git a/app/helpers/issues_controller_helper.rb b/app/helpers/issues_controller_helper.rb new file mode 100644 index 0000000..f00c555 --- /dev/null +++ b/app/helpers/issues_controller_helper.rb @@ -0,0 +1,6 @@ +module IssuesControllerHelper + def map_users_to_states(users, issue) + 'hello world' + end + +end \ No newline at end of file diff --git a/app/views/hooks/redmine_mentions_suggestions/_edit_mentionable.html.erb b/app/views/hooks/redmine_mentions_suggestions/_edit_mentionable.html.erb index d012a6c..c132b41 100644 --- a/app/views/hooks/redmine_mentions_suggestions/_edit_mentionable.html.erb +++ b/app/views/hooks/redmine_mentions_suggestions/_edit_mentionable.html.erb @@ -7,6 +7,7 @@ <% users_regex = users.collect{|u| "#{Setting.plugin_redmine_mentions['trigger']}#{u.login}"}.join('|')%> <% regex_highlight = '/\B('+users_regex+')\b/g' %>