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:
authorDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-09-29 07:03:28 +0300
committerDouglas Barbosa Alexandre <dbalexandre@gmail.com>2016-10-19 19:58:25 +0300
commit0bfa39d5bdb9f53bfc319b9351230b3eb405b619 (patch)
treed89e21ee24d1d421ce86c5bfdbbf43d699ace479 /app/helpers
parent07709c5576a06179c5365b0d7fe154c5f67ca7e5 (diff)
Remove scopes/types for labels
Diffstat (limited to 'app/helpers')
-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)