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
edf2060c
Commit
edf2060c
authored
Mar 20, 2018
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed ide_edit_button not existing
parent
2467852c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
0 deletions
+12
-0
app/helpers/blob_helper.rb
app/helpers/blob_helper.rb
+11
-0
app/views/projects/blob/_header.html.haml
app/views/projects/blob/_header.html.haml
+1
-0
No files found.
app/helpers/blob_helper.rb
View file @
edf2060c
...
@@ -33,6 +33,17 @@ module BlobHelper
...
@@ -33,6 +33,17 @@ module BlobHelper
ref
)
ref
)
end
end
def
ide_edit_button
(
project
=
@project
,
ref
=
@ref
,
path
=
@path
,
options
=
{})
return
unless
blob
=
readable_blob
(
options
,
path
,
project
,
ref
)
edit_button_tag
(
blob
,
'btn btn-default'
,
_
(
'Web IDE'
),
ide_edit_path
(
project
,
ref
,
path
,
options
),
project
,
ref
)
end
def
modify_file_button
(
project
=
@project
,
ref
=
@ref
,
path
=
@path
,
label
:,
action
:,
btn_class
:,
modal_type
:)
def
modify_file_button
(
project
=
@project
,
ref
=
@ref
,
path
=
@path
,
label
:,
action
:,
btn_class
:,
modal_type
:)
return
unless
current_user
return
unless
current_user
...
...
app/views/projects/blob/_header.html.haml
View file @
edf2060c
...
@@ -12,6 +12,7 @@
...
@@ -12,6 +12,7 @@
.btn-group
{
role:
"group"
}
<
.btn-group
{
role:
"group"
}
<
=
edit_blob_button
=
edit_blob_button
=
ide_edit_button
-
if
current_user
-
if
current_user
=
replace_blob_link
=
replace_blob_link
=
delete_blob_link
=
delete_blob_link
...
...
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