Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortiagonbotelho <tiagonbotelho@hotmail.com>2016-07-06 15:51:28 +0300
committertiagonbotelho <tiagonbotelho@hotmail.com>2016-07-06 16:24:35 +0300
commit510558fbb8b736c0903059bd19f2f095024cabd0 (patch)
tree1d7dbddc14d58e3e656fce35e0d8ae8c989e2201 /app/views/projects/blob/_editor.html.haml
parent8df419cba35262b827b6d04870da1df3ed79b939 (diff)
fixes issues for mr acceptance
Diffstat (limited to 'app/views/projects/blob/_editor.html.haml')
-rw-r--r--app/views/projects/blob/_editor.html.haml6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/views/projects/blob/_editor.html.haml b/app/views/projects/blob/_editor.html.haml
index 3c64b2f5e96..31bd4646d3d 100644
--- a/app/views/projects/blob/_editor.html.haml
+++ b/app/views/projects/blob/_editor.html.haml
@@ -4,11 +4,9 @@
= icon('code-fork')
= ref
%span.editor-file-name
- - if current_action?(:edit) && can?(current_user, :push_code, @project)
- = text_field_tag 'file_name', params[:file_name], placeholder: @path,
+ -if current_action?(:edit) || current_action?(:update)
+ = text_field_tag 'file_name', (params[:file_name] or @path),
class: 'form-control new-file-name'
- - else
- = @path
- if current_action?(:new) || current_action?(:create)
%span.editor-file-name