Commit edf2060c authored by Phil Hughes's avatar Phil Hughes

fixed ide_edit_button not existing

parent 2467852c
...@@ -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
......
...@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment