gitlab-org--gitlab-foss/app/views/projects/issues/import_csv/_button.html.haml

10 lines
283 B
Plaintext

- type = local_assigns.fetch(:type, :icon)
%button.csv-import-button.btn{ title: _('Import CSV'), class: ('has-tooltip' if type == :icon),
data: { toggle: 'modal', target: '.issues-import-modal' } }
- if type == :icon
= sprite_icon('upload')
- else
= _('Import CSV')