app/helpers/severity_levels_helper.rb
def severity_label(severity)
    text_color = text_color_for_bg(severity.color)
    "<span class='label' style='background: #{severity.color} ; color: #{text_color}'>
    #{severity.name}</span>".html_safe
  end
# Render a span label for the given severity
Render a span label for the given severity
Render a span label for the given severity
def severity_label(severity)
    text_color = text_color_for_bg(severity.color)
    "<span class='label' style='background: #{severity.color} ; color: #{text_color}'>
    #{severity.name}</span>".html_safe
  end
def severity_label ( severity ) text_color = text_color_for_bg ( severity . color ) "<span class='label' style='background: #{severity.color} ; color: #{text_color}'>
    #{severity.name}</span>" . html_safe end
Render a span label for the given severity
Render a span label for the given severity
severity