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:
Diffstat (limited to 'app/helpers/labels_helper.rb')
-rw-r--r--app/helpers/labels_helper.rb20
1 files changed, 0 insertions, 20 deletions
diff --git a/app/helpers/labels_helper.rb b/app/helpers/labels_helper.rb
index 6d0d33b84fb..e8992c114b0 100644
--- a/app/helpers/labels_helper.rb
+++ b/app/helpers/labels_helper.rb
@@ -81,26 +81,6 @@ module LabelsHelper
end
end
- def label_type_icon(label, options = {})
- title, icon =
- case label
- when GroupLabel then ['Group', 'folder-open']
- when ProjectLabel then ['Project', 'bookmark']
- end
-
- options[:class] ||= ''
- options[:class] << ' has-tooltip js-label-type'
- options[:class] << ' hidden' if options.fetch(:hidden, false)
-
- content_tag :span,
- class: options[:class],
- data: { 'placement' => 'top' },
- title: title,
- aria: { label: title } do
- icon(icon, base: true)
- end
- end
-
def render_colored_label(label, label_suffix = '', tooltip: true)
label_color = label.color || Label::DEFAULT_COLOR
text_color = text_color_for_bg(label_color)