2015-08-25 21:42:46 -04:00
|
|
|
%li.runner{id: dom_id(runner)}
|
|
|
|
%h4
|
|
|
|
= runner_status_icon(runner)
|
|
|
|
%span.monospace
|
2016-06-20 04:52:05 -04:00
|
|
|
- if @project_runners.include?(runner)
|
2015-09-25 12:03:41 -04:00
|
|
|
= link_to runner.short_sha, runner_path(runner)
|
2016-06-09 05:07:09 -04:00
|
|
|
- if runner.locked?
|
2016-06-21 04:31:37 -04:00
|
|
|
= icon('lock', class: 'has-tooltip', title: 'Locked to current projects')
|
2015-08-25 21:42:46 -04:00
|
|
|
%small
|
2016-05-05 06:20:33 -04:00
|
|
|
= link_to edit_namespace_project_runner_path(@project.namespace, @project, runner) do
|
2015-08-25 21:42:46 -04:00
|
|
|
%i.fa.fa-edit.btn
|
|
|
|
- else
|
|
|
|
= runner.short_sha
|
|
|
|
|
|
|
|
.pull-right
|
2016-06-20 04:52:05 -04:00
|
|
|
- if @project_runners.include?(runner)
|
2015-08-25 21:42:46 -04:00
|
|
|
- if runner.belongs_to_one_project?
|
2015-11-10 16:23:49 -05:00
|
|
|
= link_to 'Remove Runner', runner_path(runner), data: { confirm: "Are you sure?" }, method: :delete, class: 'btn btn-danger btn-sm'
|
2015-08-25 21:42:46 -04:00
|
|
|
- else
|
2015-12-10 11:44:06 -05:00
|
|
|
- runner_project = @project.runner_projects.find_by(runner_id: runner)
|
2015-12-04 06:55:23 -05:00
|
|
|
= link_to 'Disable for this project', namespace_project_runner_project_path(@project.namespace, @project, runner_project), data: { confirm: "Are you sure?" }, method: :delete, class: 'btn btn-danger btn-sm'
|
2015-08-25 21:42:46 -04:00
|
|
|
- elsif runner.specific?
|
2015-12-14 06:45:03 -05:00
|
|
|
= form_for [@project.namespace.becomes(Namespace), @project, @project.runner_projects.new] do |f|
|
2015-08-25 21:42:46 -04:00
|
|
|
= f.hidden_field :runner_id, value: runner.id
|
|
|
|
= f.submit 'Enable for this project', class: 'btn btn-sm'
|
|
|
|
.pull-right
|
|
|
|
%small.light
|
|
|
|
\##{runner.id}
|
|
|
|
- if runner.description.present?
|
|
|
|
%p.runner-description
|
|
|
|
= runner.description
|
|
|
|
- if runner.tag_list.present?
|
|
|
|
%p
|
|
|
|
- runner.tag_list.each do |tag|
|
|
|
|
%span.label.label-primary
|
|
|
|
= tag
|