Commit ea2cda27 authored by Sean McGivern's avatar Sean McGivern

Remove EE-specific code from blob header

parent be1825fa
......@@ -11,8 +11,7 @@
= view_on_environment_button(@commit.sha, @path, @environment) if @environment
.btn-group{ role: "group" }<
= lock_file_link(html_options: { class: 'btn btn-sm path-lock' })
= render_if_exists 'projects/blob/header_file_locks_link'
= edit_blob_button
= ide_edit_button
- if current_user
......@@ -20,11 +19,4 @@
= delete_blob_link
= render 'projects/fork_suggestion'
- if @project.feature_available?(:file_locks)
-# haml-lint:disable InlineJavaScript
%script#js-file-lock{ type: "application/json" }
- data = {}
- data[:path] = @path
- data[:toggle_path] = toggle_project_path_locks_path(@project)
= data.to_json.html_safe
= render_if_exists 'projects/blob/header_file_locks', project: @project, path: @path
- project = local_assigns.fetch(:project)
- path = local_assigns.fetch(:path)
- return unless project.feature_available?(:file_locks)
-# haml-lint:disable InlineJavaScript
%script#js-file-lock{ type: "application/json" }
- data = { path: path, toggle_path: toggle_project_path_locks_path(project) }
= data.to_json.html_safe
= lock_file_link(html_options: { class: 'btn btn-sm path-lock' })
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