ffd1a15d91
Co-authored-by: mfo <mfo@users.noreply.github.com> Co-authored-by: LeSim <mail@simon.lehericey.net>
9 lines
231 B
Ruby
9 lines
231 B
Ruby
# frozen_string_literal: true
|
|
|
|
module ExportTemplateHelper
|
|
def pretty_kind(kind)
|
|
icon = kind == 'zip' ? 'archive' : 'table'
|
|
pretty = tag.span nil, class: "fr-icon-#{icon}-line fr-mr-1v"
|
|
pretty + kind.upcase
|
|
end
|
|
end
|