diff options
author | Clement Ho <ClemMakesApps@gmail.com> | 2018-04-13 16:13:47 -0500 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2018-04-13 16:13:47 -0500 |
commit | b3d8b85f6520c8f89690a8f0e3ab96f5e6740cb2 (patch) | |
tree | 8f95868100fa9f36ab2947daa0d6ad1b2f3f7024 /app/helpers/labels_helper.rb | |
parent | bc6986f72867303f5281d6745dfab1252ea582c0 (diff) | |
download | gitlab-ce-b3d8b85f6520c8f89690a8f0e3ab96f5e6740cb2.tar.gz |
Set .bdage for labelshelperbootstrap4
Diffstat (limited to 'app/helpers/labels_helper.rb')
-rw-r--r-- | app/helpers/labels_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/labels_helper.rb b/app/helpers/labels_helper.rb index c4a6a1e4bb3..e1b0e7a4a3e 100644 --- a/app/helpers/labels_helper.rb +++ b/app/helpers/labels_helper.rb @@ -81,7 +81,7 @@ module LabelsHelper # Intentionally not using content_tag here so that this method can be called # by LabelReferenceFilter - span = %(<span class="label color-label #{"has-tooltip" if tooltip}" ) + + span = %(<span class="badge color-label #{"has-tooltip" if tooltip}" ) + %(style="background-color: #{label.color}; color: #{text_color}" ) + %(title="#{escape_once(label.description)}" data-container="body">) + %(#{escape_once(label.name)}#{label_suffix}</span>) |