summaryrefslogtreecommitdiff
path: root/app/views/projects/issues/import_csv/_button.html.haml
diff options
context:
space:
mode:
authorHeinrich Lee Yu <heinrich@gitlab.com>2018-12-04 16:42:27 +0800
committerHeinrich Lee Yu <hleeyu@gmail.com>2019-01-07 11:16:58 +0800
commit876ab436fabf2f44e2a6912262f980256b7c9736 (patch)
treed9c94ea5ce9efe8d8ef588da132a143b1f526139 /app/views/projects/issues/import_csv/_button.html.haml
parentb83be5032716548ea9d738a03e0a20f660dc04ac (diff)
downloadgitlab-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.haml9
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')
+