summaryrefslogtreecommitdiff
path: root/app/controllers/projects_controller.rb
diff options
context:
space:
mode:
authorJames Lopez <james@jameslopez.es>2016-04-14 18:01:21 +0200
committerJames Lopez <james@jameslopez.es>2016-04-14 18:01:21 +0200
commit41163fd55251edbfa0d0dd341e34c878563e4981 (patch)
tree11c035294cacabf2d66ff1b7053ae2752d2162c6 /app/controllers/projects_controller.rb
parent0852f539aa389c66ef377b7d567c931f928e147f (diff)
downloadgitlab-ce-41163fd55251edbfa0d0dd341e34c878563e4981.tar.gz
some experimental UI stuff to test export
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r--app/controllers/projects_controller.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index 3cc37e59855..39ae3659a82 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -186,6 +186,15 @@ class ProjectsController < Projects::ApplicationController
)
end
+ def export
+ ::Projects::ImportExport::ExportService.new(@project, current_user).execute
+
+ redirect_to(
+ project_path(@project),
+ notice: "Project export successfully started"
+ )
+ end
+
def toggle_star
current_user.toggle_star(@project)
@project.reload