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
Léo-Paul Géneau
gitlab-ce
Commits
31abc74f
Commit
31abc74f
authored
Feb 15, 2018
by
James Lopez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix specs
parent
6ade6e2b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
app/helpers/blob_helper.rb
app/helpers/blob_helper.rb
+7
-3
No files found.
app/helpers/blob_helper.rb
View file @
31abc74f
...
@@ -27,7 +27,9 @@ module BlobHelper
...
@@ -27,7 +27,9 @@ module BlobHelper
elsif
!
current_user
||
user_can_modify_blob
(
blob
,
project
,
ref
)
elsif
!
current_user
||
user_can_modify_blob
(
blob
,
project
,
ref
)
edit_link_tag
(
edit_text
,
edit_blob_path
(
project
,
ref
,
path
,
options
),
common_classes
)
edit_link_tag
(
edit_text
,
edit_blob_path
(
project
,
ref
,
path
,
options
),
common_classes
)
elsif
user_can_fork_project
(
project
)
elsif
user_can_fork_project
(
project
)
edit_fork_button_tag
(
common_classes
,
project
,
edit_text
,
edit_blob_fork_params
(
path
))
edit_fork_button_tag
(
common_classes
,
project
,
edit_text
,
edit_blob_fork_params
(
edit_blob_path
(
project
,
ref
,
path
,
options
)))
end
end
end
end
...
@@ -60,7 +62,10 @@ module BlobHelper
...
@@ -60,7 +62,10 @@ module BlobHelper
elsif
user_can_modify_blob
(
blob
,
project
,
ref
)
elsif
user_can_modify_blob
(
blob
,
project
,
ref
)
edit_link_tag
(
ide_edit_text
,
ide_edit_path
(
project
,
ref
,
path
,
options
),
common_classes
)
edit_link_tag
(
ide_edit_text
,
ide_edit_path
(
project
,
ref
,
path
,
options
),
common_classes
)
elsif
user_can_fork_project
(
project
)
elsif
user_can_fork_project
(
project
)
edit_fork_button_tag
(
common_classes
,
project
,
ide_edit_text
,
edit_blob_fork_params
(
path
))
edit_fork_button_tag
(
common_classes
,
project
,
ide_edit_text
,
edit_blob_fork_params
(
ide_edit_path
(
project
,
ref
,
path
,
options
)))
end
end
end
end
...
@@ -332,7 +337,6 @@ module BlobHelper
...
@@ -332,7 +337,6 @@ module BlobHelper
to:
request
.
fullpath
,
to:
request
.
fullpath
,
notice:
edit_in_new_fork_notice_action
(
action
),
notice:
edit_in_new_fork_notice_action
(
action
),
notice_now:
edit_in_new_fork_notice_now
,
notice_now:
edit_in_new_fork_notice_now
,
action:
action
}
}
end
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