debian-mirror-gitlab/app/views/projects/runners/_project_runners.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
2.3 KiB
Text
Raw Normal View History

2021-03-08 18:12:59 +05:30
%h4
2023-04-23 21:23:45 +05:30
= s_('Runners|Project runners')
2015-09-25 12:07:36 +05:30
2018-12-05 23:21:45 +05:30
.bs-callout.help-callout
2023-07-09 08:55:56 +05:30
%p= s_('Runners|These runners are assigned to this project.')
- if Feature.enabled?(:create_runner_workflow_for_namespace, @project.namespace)
- if can?(current_user, :create_runner, @project)
= render Pajamas::ButtonComponent.new(href: new_project_runner_path(@project), variant: :confirm) do
= s_('Runners|New project runner')
#js-project-runner-registration-dropdown{ data: { registration_token: @project.runners_token, project_id: @project.id } }
- else
= _('Please contact an admin to create runners.')
= link_to _('Learn more.'), help_page_path('user/admin_area/settings/continuous_integration', anchor: 'restrict-runner-registration-by-all-users-in-an-instance'), target: '_blank', rel: 'noopener noreferrer'
2021-09-30 23:02:18 +05:30
- else
2023-07-09 08:55:56 +05:30
- if can?(current_user, :register_project_runners, @project)
= render partial: 'ci/runner/how_to_setup_runner',
locals: { registration_token: @project.runners_token,
type: _('project'),
reset_token_url: reset_registration_token_namespace_project_settings_ci_cd_path,
project_path: @project.path_with_namespace,
group_path: '' }
- else
= _('Please contact an admin to register runners.')
= link_to _('Learn more.'), help_page_path('user/admin_area/settings/continuous_integration', anchor: 'restrict-runner-registration-by-all-users-in-an-instance'), target: '_blank', rel: 'noopener noreferrer'
2015-09-25 12:07:36 +05:30
2021-03-08 18:12:59 +05:30
%hr
2016-06-22 15:30:34 +05:30
- if @project_runners.any?
2023-04-23 21:23:45 +05:30
%h4.underlined-title= s_('Runners|Assigned project runners')
%ul.bordered-list{ data: { testid: 'assigned_project_runners' } }
2017-08-17 22:00:37 +05:30
= render partial: 'projects/runners/runner', collection: @project_runners, as: :runner
2021-01-29 00:20:46 +05:30
= paginate @project_runners, theme: "gitlab", param_name: "project_page", params: { expand_runners: true, anchor: 'js-runners-settings' }
2015-09-25 12:07:36 +05:30
2016-06-22 15:30:34 +05:30
- if @assignable_runners.any?
2021-03-08 18:12:59 +05:30
%h4.underlined-title= _('Other available runners')
2023-04-23 21:23:45 +05:30
%ul.bordered-list{ data: { testid: 'available_project_runners' } }
2017-08-17 22:00:37 +05:30
= render partial: 'projects/runners/runner', collection: @assignable_runners, as: :runner
2021-01-29 00:20:46 +05:30
= paginate @assignable_runners, theme: "gitlab", param_name: "specific_page", :params => { :anchor => 'js-runners-settings'}