gitlab-org--gitlab-foss/app/views/ci/admin/runners/show.html.haml

131 lines
3.9 KiB
Plaintext
Raw Normal View History

2015-08-26 01:42:46 +00:00
= content_for :title do
%h3.project-title
Runner ##{@runner.id}
.pull-right
- if @runner.shared?
%span.runner-state.runner-state-shared
Shared
- else
%span.runner-state.runner-state-specific
Specific
- if @runner.shared?
.bs-callout.bs-callout-success
2015-10-24 10:37:44 +00:00
%h4 This runner will process builds from ALL UNASSIGNED projects
2015-08-26 01:42:46 +00:00
%p
If you want runners to build only specific projects, enable them in the table below.
Keep in mind that this is a one way transition.
- else
.bs-callout.bs-callout-info
2015-10-24 10:37:44 +00:00
%h4 This runner will process builds only from ASSIGNED projects
2015-08-26 01:42:46 +00:00
%p You can't make this a shared runner.
%hr
= form_for @runner, url: ci_admin_runner_path(@runner), html: { class: 'form-horizontal' } do |f|
.form-group
= label_tag :token, class: 'control-label' do
Token
.col-sm-10
= f.text_field :token, class: 'form-control', readonly: true
.form-group
= label_tag :description, class: 'control-label' do
Description
.col-sm-10
= f.text_field :description, class: 'form-control'
.form-group
= label_tag :tag_list, class: 'control-label' do
Tags
.col-sm-10
2015-11-30 14:12:31 +00:00
= f.text_field :tag_list, value: @runner.tag_list.to_s, class: 'form-control'
2015-08-26 01:42:46 +00:00
.help-block You can setup builds to only use runners with specific tags
.form-actions
= f.submit 'Save', class: 'btn btn-save'
.row
.col-md-6
%h4 Restrict projects for this runner
- if @runner.projects.any?
%table.table
%thead
%tr
%th Assigned projects
%th
- @runner.runner_projects.each do |runner_project|
- project = runner_project.project
2015-10-23 10:41:17 +00:00
- if project.gl_project
%tr.alert-info
%td
%strong
= project.name
%td
.pull-right
= link_to 'Disable', [:ci, :admin, project, runner_project], method: :delete, class: 'btn btn-danger btn-xs'
2015-08-26 01:42:46 +00:00
%table.table
%thead
%tr
%th Project
%th
.pull-right
= link_to 'Assign to all', assign_all_ci_admin_runner_path(@runner),
class: 'btn btn-sm assign-all-runner',
title: 'Assign runner to all projects',
method: :put
%tr
%td
2015-09-15 20:13:01 +00:00
= form_tag ci_admin_runner_path(@runner), id: 'runner-projects-search', class: 'form-inline', method: :get do
2015-08-26 01:42:46 +00:00
.form-group
= search_field_tag :search, params[:search], class: 'form-control', spellcheck: false
2015-08-26 01:42:46 +00:00
= submit_tag 'Search', class: 'btn'
%td
- @projects.each do |project|
%tr
%td
= project.name
%td
.pull-right
= form_for [:ci, :admin, project, project.runner_projects.new] do |f|
= f.hidden_field :runner_id, value: @runner.id
= f.submit 'Enable', class: 'btn btn-xs'
= paginate @projects
.col-md-6
%h4 Recent builds served by this runner
%table.builds.runner-builds
%thead
%tr
%th Build ID
2015-08-26 01:42:46 +00:00
%th Status
%th Project
%th Commit
%th Finished at
- @builds.each do |build|
2015-10-23 10:41:17 +00:00
- gl_project = build.gl_project
%tr.build
%td.id
2015-10-23 10:41:17 +00:00
- if gl_project
= link_to namespace_project_build_path(gl_project.namespace, gl_project, build) do
= build.id
- else
= build.id
2015-08-26 01:42:46 +00:00
%td.status
= ci_status_with_icon(build.status)
2015-08-26 01:42:46 +00:00
%td.status
2015-10-23 10:41:17 +00:00
- if gl_project
= gl_project.name_with_namespace
2015-08-26 01:42:46 +00:00
%td.build-link
2015-10-23 10:41:17 +00:00
- if gl_project
= link_to ci_status_path(build.commit) do
%strong #{build.commit.short_sha}
2015-08-26 01:42:46 +00:00
%td.timestamp
- if build.finished_at
%span #{time_ago_in_words build.finished_at} ago