Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2020-09-23 15:09:58 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-09-23 15:09:58 +0300
commita071c2888d62f7a56349e99f5c070407df2e17c1 (patch)
tree47e5d2cb95920a1e28348c3af5a3d9987c2805c2 /app/helpers/search_helper.rb
parent8f2b51af416f4f4451632f6b3c2ada52c52eb44f (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/helpers/search_helper.rb')
-rw-r--r--app/helpers/search_helper.rb7
1 files changed, 0 insertions, 7 deletions
diff --git a/app/helpers/search_helper.rb b/app/helpers/search_helper.rb
index e4ab4fc7c9a..0dea6217276 100644
--- a/app/helpers/search_helper.rb
+++ b/app/helpers/search_helper.rb
@@ -299,13 +299,6 @@ module SearchHelper
simple_search_highlight_and_truncate(issue.description, search_term, highlighter: '<span class="gl-text-black-normal gl-font-weight-bold">\1</span>')
end
- def simple_search_highlight_and_truncate(text, phrase, options = {})
- truncate_length = options.delete(:length) { 200 }
- text = truncate(text, length: truncate_length)
- phrase = phrase.split
- highlight(text, phrase, options)
- end
-
def show_user_search_tab?
return false if Feature.disabled?(:users_search, default_enabled: true)