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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
5c6ac77f
Commit
5c6ac77f
authored
Feb 17, 2022
by
Igor Drozdov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix Replace button form path
Changelog: fixed
parent
37dae5be
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/presenters/blob_presenter.rb
app/presenters/blob_presenter.rb
+1
-1
spec/presenters/blob_presenter_spec.rb
spec/presenters/blob_presenter_spec.rb
+1
-1
No files found.
app/presenters/blob_presenter.rb
View file @
5c6ac77f
...
@@ -56,7 +56,7 @@ class BlobPresenter < Gitlab::View::Presenter::Delegated
...
@@ -56,7 +56,7 @@ class BlobPresenter < Gitlab::View::Presenter::Delegated
end
end
def
replace_path
def
replace_path
url_helpers
.
project_
cre
ate_blob_path
(
project
,
ref_qualified_path
)
url_helpers
.
project_
upd
ate_blob_path
(
project
,
ref_qualified_path
)
end
end
def
pipeline_editor_path
def
pipeline_editor_path
...
...
spec/presenters/blob_presenter_spec.rb
View file @
5c6ac77f
...
@@ -28,7 +28,7 @@ RSpec.describe BlobPresenter do
...
@@ -28,7 +28,7 @@ RSpec.describe BlobPresenter do
end
end
describe
'#replace_path'
do
describe
'#replace_path'
do
it
{
expect
(
presenter
.
replace_path
).
to
eq
(
"/
#{
project
.
full_path
}
/-/
cre
ate/
#{
blob
.
commit_id
}
/
#{
blob
.
path
}
"
)
}
it
{
expect
(
presenter
.
replace_path
).
to
eq
(
"/
#{
project
.
full_path
}
/-/
upd
ate/
#{
blob
.
commit_id
}
/
#{
blob
.
path
}
"
)
}
end
end
describe
'#can_current_user_push_to_branch'
do
describe
'#can_current_user_push_to_branch'
do
...
...
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