diff options
author | Heinrich Lee Yu <heinrich@gitlab.com> | 2018-12-04 16:42:27 +0800 |
---|---|---|
committer | Heinrich Lee Yu <hleeyu@gmail.com> | 2019-01-07 11:16:58 +0800 |
commit | 876ab436fabf2f44e2a6912262f980256b7c9736 (patch) | |
tree | d9c94ea5ce9efe8d8ef588da132a143b1f526139 /app/views/projects/issues/import_csv/_button.html.haml | |
parent | b83be5032716548ea9d738a03e0a20f660dc04ac (diff) | |
download | gitlab-ce-876ab436fabf2f44e2a6912262f980256b7c9736.tar.gz |
Add Import CSV Frontend
Added button and modal to accept CSV file for uploading
Diffstat (limited to 'app/views/projects/issues/import_csv/_button.html.haml')
-rw-r--r-- | app/views/projects/issues/import_csv/_button.html.haml | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/app/views/projects/issues/import_csv/_button.html.haml b/app/views/projects/issues/import_csv/_button.html.haml new file mode 100644 index 00000000000..acc2c50294f --- /dev/null +++ b/app/views/projects/issues/import_csv/_button.html.haml @@ -0,0 +1,9 @@ +- 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') + |