Commit 0263f9fa authored by Robert May's avatar Robert May

Use fork suggestion helper in blob view

parent f07c1bb8
- if current_user .js-file-fork-suggestion-section.file-fork-suggestion.hidden
.js-file-fork-suggestion-section.file-fork-suggestion.hidden %span.file-fork-suggestion-note
%span.file-fork-suggestion-note You're not allowed to
You're not allowed to %span.js-file-fork-suggestion-section-action
%span.js-file-fork-suggestion-section-action edit
edit files in this project directly. Please fork this project,
files in this project directly. Please fork this project, make your changes there, and submit a merge request.
make your changes there, and submit a merge request. = link_to 'Fork', nil, method: :post, class: 'js-fork-suggestion-button gl-button btn btn-grouped btn-inverted btn-success'
= link_to 'Fork', nil, method: :post, class: 'js-fork-suggestion-button gl-button btn btn-grouped btn-inverted btn-success' %button.js-cancel-fork-suggestion-button.gl-button.btn.btn-grouped{ type: 'button' }
%button.js-cancel-fork-suggestion-button.gl-button.btn.btn-grouped{ type: 'button' } Cancel
Cancel
...@@ -20,5 +20,5 @@ ...@@ -20,5 +20,5 @@
= download_blob_button(blob) = download_blob_button(blob)
= view_on_environment_button(@commit.sha, @path, @environment) if @environment = view_on_environment_button(@commit.sha, @path, @environment) if @environment
= render 'projects/fork_suggestion' = render_fork_suggestion
= render_if_exists 'projects/blob/header_file_locks', project: @project, path: @path = render_if_exists 'projects/blob/header_file_locks', project: @project, path: @path
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