Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/groups/runners/_settings.html.haml')
-rw-r--r--app/views/groups/runners/_settings.html.haml24
1 files changed, 11 insertions, 13 deletions
diff --git a/app/views/groups/runners/_settings.html.haml b/app/views/groups/runners/_settings.html.haml
index 7716a2f125f..3e5ec3c26e2 100644
--- a/app/views/groups/runners/_settings.html.haml
+++ b/app/views/groups/runners/_settings.html.haml
@@ -1,14 +1,12 @@
-.gl-mb-6
+.gl-mb-5
#update-shared-runners-form{ data: group_shared_runners_settings_data(@group) }
-.gl-card.gl-px-8.gl-py-6.gl-line-height-20
- .gl-card-body.gl-display-flex{ :class => "gl-p-0!" }
- .gl-banner-illustration
- = image_tag('illustrations/rocket-launch-md.svg', alt: s_('Runners|Rocket launch illustration'))
- .gl-banner-content
- %h1.gl-banner-title
- = s_('Runners|New group runners view')
- %p
- = s_('Runners|The new view gives you more space and better visibility into your fleet of runners.')
- %a.btn.btn-confirm.btn-md.gl-button{ :href => group_runners_path(@group) }
- %span.gl-button-text
- = s_('Runners|Take me there!')
+- if @group.licensed_feature_available?(:stale_runner_cleanup_for_namespace)
+ .gl-mb-5
+ #stale-runner-cleanup-form{ data: { group_full_path: @group.full_path, stale_timeout_secs: ::Ci::Runner::STALE_TIMEOUT.to_i } }
+= render Pajamas::BannerComponent.new(button_text: s_('Runners|Take me there!'),
+ button_link: group_runners_path(@group),
+ svg_path: 'illustrations/rocket-launch-md.svg',
+ close_options: { class: 'gl-display-none' }) do |c|
+ - c.title do
+ = s_('Runners|New group runners view')
+ %p= s_('Runners|The new view gives you more space and better visibility into your fleet of runners.')