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
4c8f8f4f
Commit
4c8f8f4f
authored
Feb 09, 2018
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix spec
parent
5fc3ff98
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
app/helpers/blob_helper.rb
app/helpers/blob_helper.rb
+3
-3
No files found.
app/helpers/blob_helper.rb
View file @
4c8f8f4f
...
...
@@ -12,8 +12,8 @@ module BlobHelper
def
edit_blob_path
(
project
=
@project
,
ref
=
@ref
,
path
=
@path
,
options
=
{})
project_edit_blob_path
(
project
,
tree_join
(
ref
,
path
),
options
[
:link_opts
])
tree_join
(
ref
,
path
),
options
[
:link_opts
])
end
def
edit_blob_link
(
project
=
@project
,
ref
=
@ref
,
path
=
@path
,
options
=
{})
...
...
@@ -25,7 +25,7 @@ module BlobHelper
edit_button_tag
(
edit_text
,
common_classes
)
# This condition applies to anonymous or users who can edit directly
elsif
!
current_user
||
(
current_user
&&
can_modify_blob?
(
blob
,
project
,
ref
))
edit_link_tag
(
edit_text
,
ide_edit
_path
(
project
,
ref
,
path
,
options
),
common_classes
)
edit_link_tag
(
edit_text
,
edit_blob
_path
(
project
,
ref
,
path
,
options
),
common_classes
)
elsif
current_user
&&
can?
(
current_user
,
:fork_project
,
project
)
edit_blob_fork
(
common_classes
,
edit_blob_path
(
project
,
ref
,
path
,
options
),
project
,
edit_in_new_fork_notice
)
end
...
...
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