demarches-normaliennes/app/helpers/export_template_helper.rb
Christophe Robillard ffd1a15d91
add, edit and destroy export template with exported_columns
Co-authored-by: mfo <mfo@users.noreply.github.com>
Co-authored-by: LeSim <mail@simon.lehericey.net>
2024-11-14 14:45:40 +01:00

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