diff options
author | Valery Sizov <valery@gitlab.com> | 2015-01-28 02:37:19 +0300 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2015-02-05 23:50:34 +0300 |
commit | 5194214e3a2f97accf0c8119b4cb39fd4fcef5db (patch) | |
tree | 7320257c4470abadd90a0f17fd92f408143b6bb1 /app/views/projects/_gitlab_import_modal.html.haml | |
parent | 0a9cab4ee65f2b42c56989698c401cab60d68b53 (diff) |
GitLab integration. Importer
Diffstat (limited to 'app/views/projects/_gitlab_import_modal.html.haml')
-rw-r--r-- | app/views/projects/_gitlab_import_modal.html.haml | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app/views/projects/_gitlab_import_modal.html.haml b/app/views/projects/_gitlab_import_modal.html.haml new file mode 100644 index 00000000000..d402098cbd4 --- /dev/null +++ b/app/views/projects/_gitlab_import_modal.html.haml @@ -0,0 +1,22 @@ +%div#gitlab_import_modal.modal.hide + .modal-dialog + .modal-content + .modal-header + %a.close{href: "#", "data-dismiss" => "modal"} × + %h3 GitLab OAuth import + .modal-body + You need to setup integration with GitLab first. + = link_to 'How to setup integration with GitLab', 'https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/integration/gitlab.md' + + +:javascript + $(function(){ + var import_modal = $('#gitlab_import_modal').modal({modal: true, show:false}); + $('.how_to_import_link').bind("click", function(e){ + e.preventDefault(); + import_modal.show(); + }); + $('.modal-header .close').bind("click", function(){ + import_modal.hide(); + }) + }) |