diff options
author | Douwe Maan <douwe@gitlab.com> | 2016-06-17 14:28:58 +0000 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2016-06-17 14:28:58 +0000 |
commit | 402b651a552030c90af421ddd2a74f6cbf298413 (patch) | |
tree | c7aa3e6ff87eff5dccdb0b91dbd64675d5b6d211 /app/controllers/application_controller.rb | |
parent | 2a747d386dbdc05453fce6b8be3f483e8cd9e796 (diff) | |
parent | 2d4556c5d208e9ae805b0467c1c7281ae6a36ebe (diff) | |
download | gitlab-ce-feature/project-import.tar.gz |
Merge branch 'feature/project-export-ui-experimental' into 'feature/project-import'
feature/project-import
Experimental UI for exporting and importing a project
Part of https://gitlab.com/gitlab-org/gitlab-ce/issues/3050
Screenshots of both the export and import processes:
## Export
1 - Project settings

2 - Flash after clicking on export

3 - Email received with download link

4 - The project settings export screen changes so we can either delete the file or download it again (it won't generate a new export, unless we delete it first)

5 - After delete flash

## Import
1 - New project page with new gitlab export option

2 - Next step importing - choosing a file

3 - Import in progress

4 - Import successful

See merge request !4012
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r-- | app/controllers/application_controller.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index cd6ae507cf1..726acbdb3ed 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -24,7 +24,7 @@ class ApplicationController < ActionController::Base protect_from_forgery with: :exception helper_method :abilities, :can?, :current_application_settings - helper_method :import_sources_enabled?, :github_import_enabled?, :github_import_configured?, :gitlab_import_enabled?, :gitlab_import_configured?, :bitbucket_import_enabled?, :bitbucket_import_configured?, :gitorious_import_enabled?, :google_code_import_enabled?, :fogbugz_import_enabled?, :git_import_enabled? + helper_method :import_sources_enabled?, :github_import_enabled?, :github_import_configured?, :gitlab_import_enabled?, :gitlab_import_configured?, :bitbucket_import_enabled?, :bitbucket_import_configured?, :gitorious_import_enabled?, :google_code_import_enabled?, :fogbugz_import_enabled?, :git_import_enabled?, :gitlab_project_import_enabled? rescue_from Encoding::CompatibilityError do |exception| log_exception(exception) @@ -326,6 +326,10 @@ class ApplicationController < ActionController::Base current_application_settings.import_sources.include?('git') end + def gitlab_project_import_enabled? + current_application_settings.import_sources.include?('gitlab_project') + end + def two_factor_authentication_required? current_application_settings.require_two_factor_authentication end |