Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
dd3addad
Commit
dd3addad
authored
Jul 13, 2016
by
tiagonbotelho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
renames :file_name to :file_path
parent
4352ff0d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
app/controllers/projects/blob_controller.rb
app/controllers/projects/blob_controller.rb
+2
-2
app/views/projects/blob/_editor.html.haml
app/views/projects/blob/_editor.html.haml
+2
-2
No files found.
app/controllers/projects/blob_controller.rb
View file @
dd3addad
...
...
@@ -38,9 +38,9 @@ class Projects::BlobController < Projects::ApplicationController
end
def
update
unless
params
[
:file_name
].
nil?
||
params
[
:file_name
].
empty
?
if
params
[
:file_path
].
present
?
@previous_path
=
@path
@path
=
params
[
:file_
name
]
@path
=
params
[
:file_
path
]
@commit_params
[
:file_path
]
=
@path
end
...
...
app/views/projects/blob/_editor.html.haml
View file @
dd3addad
...
...
@@ -5,8 +5,8 @@
=
ref
%span
.editor-file-name
-
if
current_action?
(
:edit
)
||
current_action?
(
:update
)
=
text_field_tag
'file_
name'
,
(
params
[
:file_name
]
||
@path
),
class:
'form-control new-file-
name
'
=
text_field_tag
'file_
path'
,
(
params
[
:file_path
]
||
@path
),
class:
'form-control new-file-
path
'
-
if
current_action?
(
:new
)
||
current_action?
(
:create
)
%span
.editor-file-name
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment