summaryrefslogtreecommitdiff
path: root/app/controllers/projects/blob_controller.rb
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2015-09-16 23:34:30 -0700
committerStan Hu <stanhu@gmail.com>2015-09-17 07:24:45 -0700
commitac855e5ed39bf02b7314c97550d026a5c019fba6 (patch)
tree9ae6df16b394acd86d2e5e4166fc91d81a6c2002 /app/controllers/projects/blob_controller.rb
parentb75e4d7149ff40ac4519234b2e351521eb038982 (diff)
downloadgitlab-ce-ac855e5ed39bf02b7314c97550d026a5c019fba6.tar.gz
Move partial locals out of controller
Diffstat (limited to 'app/controllers/projects/blob_controller.rb')
-rw-r--r--app/controllers/projects/blob_controller.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/app/controllers/projects/blob_controller.rb b/app/controllers/projects/blob_controller.rb
index d7be212c33a..8776721d243 100644
--- a/app/controllers/projects/blob_controller.rb
+++ b/app/controllers/projects/blob_controller.rb
@@ -18,12 +18,6 @@ class Projects::BlobController < Projects::ApplicationController
before_action :after_edit_path, only: [:edit, :update]
def new
- @title = 'Upload'
- @placeholder = 'Upload new file'
- @button_title = 'Upload file'
- @form_path = namespace_project_create_blob_path(@project.namespace, @project, @id)
- @method = :post
-
commit unless @repository.empty?
end
@@ -46,11 +40,6 @@ class Projects::BlobController < Projects::ApplicationController
end
def show
- @title = "Replace #{@blob.name}"
- @placeholder = @title
- @button_title = 'Replace file'
- @form_path = namespace_project_update_blob_path(@project.namespace, @project, @id)
- @method = :put
end
def edit