aboutsummaryrefslogtreecommitdiffstats
path: root/app/helpers/referentials_helper.rb
blob: f3c18d9f87fee18ee9a91f7a8c0ea993a7ddef64 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
module ReferentialsHelper
  # Line statuses helper
  def line_status(status)
    if status
    cls = 'danger'
      content_tag :span, status ? " #{t('false')} " : " #{t('true')}", class: "fa fa-exclamation-circle fa-lg text-#{cls}"
    else
    cls = 'success'
      content_tag :span, status ? " #{t('false')} " : " #{t('true')}", class: "fa fa-check-circle fa-lg text-#{cls}"
    end
  end
end