fixed ide_edit_button not existing
This commit is contained in:
parent
2467852cce
commit
edf2060c6d
|
@ -33,6 +33,17 @@ module BlobHelper
|
|||
ref)
|
||||
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:)
|
||||
return unless current_user
|
||||
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
|
||||
.btn-group{ role: "group" }<
|
||||
= edit_blob_button
|
||||
= ide_edit_button
|
||||
- if current_user
|
||||
= replace_blob_link
|
||||
= delete_blob_link
|
||||
|
|
Loading…
Reference in New Issue