Add comment in _runner.html.haml about hacky runner type check
This commit is contained in:
parent
49cbe57622
commit
dc439a3b42
|
@ -26,7 +26,7 @@
|
||||||
- else
|
- else
|
||||||
- runner_project = @project.runner_projects.find_by(runner_id: runner)
|
- runner_project = @project.runner_projects.find_by(runner_id: runner)
|
||||||
= link_to 'Disable for this project', project_runner_project_path(@project, runner_project), data: { confirm: "Are you sure?" }, method: :delete, class: 'btn btn-danger btn-sm'
|
= link_to 'Disable for this project', project_runner_project_path(@project, runner_project), data: { confirm: "Are you sure?" }, method: :delete, class: 'btn btn-danger btn-sm'
|
||||||
- elsif !(runner.is_shared? || runner.group_type?)
|
- elsif !(runner.is_shared? || runner.group_type?) # We can simplify this to `runner.project_type?` when migrating #runner_type is complete
|
||||||
= form_for [@project.namespace.becomes(Namespace), @project, @project.runner_projects.new] do |f|
|
= form_for [@project.namespace.becomes(Namespace), @project, @project.runner_projects.new] do |f|
|
||||||
= f.hidden_field :runner_id, value: runner.id
|
= f.hidden_field :runner_id, value: runner.id
|
||||||
= f.submit 'Enable for this project', class: 'btn btn-sm'
|
= f.submit 'Enable for this project', class: 'btn btn-sm'
|
||||||
|
|
Loading…
Reference in New Issue