app/helpers/labels_helper.rb
# !! Note that `label_tag` is a Rails reserved word, so we have to append and make exceptions
Note that `label_tag` is a Rails reserved word, so we have to append and make exceptions
Note that ` label_tag ` is a Rails reserved word so we have to append and make exceptions
def taxonworks_label_tag(label)
    return nil if label.nil?
    case label.type
    when 'Label::QrCode'
      label_svg_tag(label)
    when 'Label::Code128'
      label_code_128_tag(label)
    else
      content_tag(:span, label.text, style: label.style) 
    end
  end
def taxonworks_label_tag ( label ) return nil if label . nil? case label . type when 'Label::QrCode' label_svg_tag ( label ) when 'Label::Code128' label_code_128_tag ( label ) else content_tag ( :span , label . text , style : label . style ) end end
Note that `label_tag` is a Rails reserved word, so we have to append and make exceptions
Note that ` label_tag ` is a Rails reserved word so we have to append and make exceptions
# TODO: properly reference style
label
<not_specific>