10 lines
231 B
Ruby
10 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
|