debian-mirror-gitlab/app/views/groups/runners/_settings.html.haml

104 lines
5.2 KiB
Text
Raw Normal View History

2018-10-15 14:42:47 +05:30
= render 'shared/runners/runner_description'
%hr
.row
.col-sm-6
= render 'groups/runners/group_runners'
2021-01-03 14:25:43 +05:30
.col-sm-6
= render 'groups/runners/shared_runners'
2020-07-28 23:09:34 +05:30
%h4.underlined-title
2021-03-08 18:12:59 +05:30
= _('Available runners: %{runners}').html_safe % { runners: limited_counter_with_delimiter(@all_group_runners) }
2020-07-28 23:09:34 +05:30
-# haml-lint:disable NoPlainNodes
.row
.col-sm-9
= form_tag group_settings_ci_cd_path, id: 'runners-search', method: :get, class: 'filter-form js-filter-form' do
.filtered-search-wrapper.d-flex
.filtered-search-box
= dropdown_tag(_('Recent searches'),
options: { wrapper_class: 'filtered-search-history-dropdown-wrapper',
2021-04-29 21:17:54 +05:30
toggle_class: 'gl-button btn btn-default filtered-search-history-dropdown-toggle-button',
2020-07-28 23:09:34 +05:30
dropdown_class: 'filtered-search-history-dropdown',
content_class: 'filtered-search-history-dropdown-content' }) do
.js-filtered-search-history-dropdown{ data: { full_path: group_settings_ci_cd_path } }
.filtered-search-box-input-container.droplab-dropdown
.scroll-container
%ul.tokens-container.list-unstyled
%li.input-token
%input.form-control.filtered-search{ search_filter_input_options('runners') }
#js-dropdown-hint.filtered-search-input-dropdown-menu.dropdown-menu.hint-dropdown
%ul.filter-dropdown{ data: { dynamic: true, dropdown: true } }
%li.filter-dropdown-item{ data: {hint: "#{'{{hint}}'}", tag: "#{'{{tag}}'}", action: "#{'{{hint === \'search\' ? \'submit\' : \'\' }}'}" } }
2021-04-29 21:17:54 +05:30
= button_tag class: 'gl-button btn btn-link' do
2020-07-28 23:09:34 +05:30
-# Encapsulate static class name `{{icon}}` inside #{} to bypass
-# haml lint's ClassAttributeWithStaticValue
%svg
%use{ 'xlink:href': "#{'{{icon}}'}" }
%span.js-filter-hint
{{formattedKey}}
#js-dropdown-operator.filtered-search-input-dropdown-menu.dropdown-menu
%ul.filter-dropdown{ data: { dropdown: true, dynamic: true } }
%li.filter-dropdown-item{ data: { value: "{{ title }}" } }
2021-04-29 21:17:54 +05:30
= button_tag class: 'gl-button btn btn-link' do
2020-07-28 23:09:34 +05:30
{{ title }}
%span.btn-helptext
{{ help }}
#js-dropdown-admin-runner-status.filtered-search-input-dropdown-menu.dropdown-menu
%ul{ data: { dropdown: true } }
- Ci::Runner::AVAILABLE_STATUSES.each do |status|
%li.filter-dropdown-item{ data: { value: status } }
2021-04-29 21:17:54 +05:30
= button_tag class: 'gl-button btn btn-link' do
2020-07-28 23:09:34 +05:30
= status.titleize
#js-dropdown-admin-runner-type.filtered-search-input-dropdown-menu.dropdown-menu
%ul{ data: { dropdown: true } }
- Ci::Runner::AVAILABLE_TYPES.each do |runner_type|
- next if runner_type == 'instance_type'
%li.filter-dropdown-item{ data: { value: runner_type } }
2021-04-29 21:17:54 +05:30
= button_tag class: 'gl-button btn btn-link' do
2020-07-28 23:09:34 +05:30
= runner_type.titleize
#js-dropdown-runner-tag.filtered-search-input-dropdown-menu.dropdown-menu
%ul{ data: { dropdown: true } }
%li.filter-dropdown-item{ data: { value: 'none' } }
2021-04-29 21:17:54 +05:30
= button_tag class: 'gl-button btn btn-link' do
2020-07-28 23:09:34 +05:30
= _('No Tag')
%li.divider.droplab-item-ignore
%ul.filter-dropdown{ data: { dynamic: true, dropdown: true } }
%li.filter-dropdown-item
2021-04-29 21:17:54 +05:30
= button_tag class: 'gl-button btn btn-link js-data-value' do
2020-07-28 23:09:34 +05:30
%span.dropdown-light-content
{{name}}
= button_tag class: 'clear-search hidden' do
2020-11-24 15:15:51 +05:30
= sprite_icon('close', size: 16, css_class: 'clear-search-icon')
2020-07-28 23:09:34 +05:30
.filter-dropdown-container
2021-10-27 15:23:28 +05:30
= render 'groups/runners/sort_dropdown'
2020-07-28 23:09:34 +05:30
.col-sm-3.text-right-lg
= _('Runners currently online: %{active_runners_count}') % { active_runners_count: limited_counter_with_delimiter(@all_group_runners.online) }
- if @group_runners.any?
2021-04-29 21:17:54 +05:30
.content-list{ data: { testid: 'runners-table' } }
2020-07-28 23:09:34 +05:30
.table-holder
.gl-responsive-table-row.table-row-header{ role: 'row' }
.table-section.section-10{ role: 'rowheader' }= _('Type/State')
2021-04-29 21:17:54 +05:30
.table-section.section-30{ role: 'rowheader' }= s_('Runners|Runner')
2020-07-28 23:09:34 +05:30
.table-section.section-10{ role: 'rowheader' }= _('Version')
.table-section.section-10{ role: 'rowheader' }= _('IP Address')
.table-section.section-5{ role: 'rowheader' }= _('Projects')
.table-section.section-5{ role: 'rowheader' }= _('Jobs')
.table-section.section-10{ role: 'rowheader' }= _('Tags')
.table-section.section-10{ role: 'rowheader' }= _('Last contact')
.table-section.section-10{ role: 'rowheader' }
- @group_runners.each do |runner|
2021-10-27 15:23:28 +05:30
- runner = runner.present(current_user: current_user)
2020-07-28 23:09:34 +05:30
= render 'groups/runners/runner', runner: runner
= paginate @group_runners, theme: 'gitlab', :params => { :anchor => 'runners-settings' }
- else
.nothing-here-block= _('No runners found')