summaryrefslogtreecommitdiff
path: root/app/views/projects/blob
diff options
context:
space:
mode:
authortiagonbotelho <tiagonbotelho@hotmail.com>2016-07-11 17:11:16 +0100
committertiagonbotelho <tiagonbotelho@hotmail.com>2016-07-11 17:11:16 +0100
commit2298c003b6d2d511fedef2f50a5570ffd3e017df (patch)
tree61b4d039a7ced6649cbc7d0df6a9a2f33b852c2d /app/views/projects/blob
parent5d6b90a050a30442f9cd44eafa1c7ed79f005bba (diff)
downloadgitlab-ce-2298c003b6d2d511fedef2f50a5570ffd3e017df.tar.gz
changes the usasge of path to file_path on blob_controller for compatibillity with the create action
Diffstat (limited to 'app/views/projects/blob')
-rw-r--r--app/views/projects/blob/_editor.html.haml2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/projects/blob/_editor.html.haml b/app/views/projects/blob/_editor.html.haml
index ad3009f30ab..ba3b3439e9b 100644
--- a/app/views/projects/blob/_editor.html.haml
+++ b/app/views/projects/blob/_editor.html.haml
@@ -5,7 +5,7 @@
= ref
%span.editor-file-name
- if current_action?(:edit) || current_action?(:update)
- = text_field_tag 'file_name', (params[:file_name] || @path),
+ = text_field_tag 'file_name', (params[:file_name] || @file_path),
class: 'form-control new-file-name'
- if current_action?(:new) || current_action?(:create)