diff options
author | James Lopez <james@jameslopez.es> | 2016-04-26 11:59:00 +0300 |
---|---|---|
committer | James Lopez <james@jameslopez.es> | 2016-04-26 11:59:00 +0300 |
commit | 28b0208e93cbc949e1c733c60ec577740d824623 (patch) | |
tree | 18942ada0f3e1be0d478ba2b115cfab7a745dd58 /app/views/projects | |
parent | 4037a738945631c5fc58c464d4a9b12e9448387a (diff) |
refactoring, mainly UI stuff to follow other import actions
Diffstat (limited to 'app/views/projects')
-rw-r--r-- | app/views/projects/_project_import_form.html.haml | 8 | ||||
-rw-r--r-- | app/views/projects/new.html.haml | 4 |
2 files changed, 1 insertions, 11 deletions
diff --git a/app/views/projects/_project_import_form.html.haml b/app/views/projects/_project_import_form.html.haml deleted file mode 100644 index 62d4b55424c..00000000000 --- a/app/views/projects/_project_import_form.html.haml +++ /dev/null @@ -1,8 +0,0 @@ -.form-group.import-url-data - = f.label :import_url, class: 'control-label' do - %span GitLab export file - .col-sm-10 - = f.file_field :file, class: '' - - .well.prepend-top-20 - The project must have a valid Gitlab export format
\ No newline at end of file diff --git a/app/views/projects/new.html.haml b/app/views/projects/new.html.haml index cf24c4cacf3..d4bb57aafc7 100644 --- a/app/views/projects/new.html.haml +++ b/app/views/projects/new.html.haml @@ -91,14 +91,12 @@ %span Repo by URL - if gitlab_project_import_enabled? - = link_to "#", class: 'btn import_gitlab_project', onclick: '$(".js-toggle-content2").toggle();' do + = link_to new_import_gitlab_project_path, class: 'btn import_gitlab_project' do %i.fa.fa-gitlab %span GitLab project .js-toggle-content.hide = render "shared/import_form", f: f - .js-toggle-content2.hide - = render "project_import_form", f: f .prepend-botton-10 |