Skip to content
代码片段 群组 项目
未验证 提交 1d40e466 编辑于 作者: Alexander Turinske's avatar Alexander Turinske
浏览文件

Migrate runner buttons to pajamas

- update disable button
- update enable buttons
- remove all unnecessary styles

Changelog: changed
上级 414ce215
No related branches found
No related tags found
无相关合并请求
...@@ -24,7 +24,8 @@ ...@@ -24,7 +24,8 @@
dismissible: false, dismissible: false,
title: project.full_name) do |c| title: project.full_name) do |c|
= c.actions do = c.actions do
= link_to _('Disable'), admin_namespace_project_runner_project_path(project.namespace, project, runner_project), method: :delete, class: 'btn gl-alert-action btn-confirm btn-md gl-button' = render Pajamas::ButtonComponent.new(variant: :confirm, href: admin_namespace_project_runner_project_path(project.namespace, project, runner_project), method: :delete) do
= _('Disable')
%table.table{ data: { testid: 'unassigned-projects' } } %table.table{ data: { testid: 'unassigned-projects' } }
%thead %thead
...@@ -47,7 +48,8 @@ ...@@ -47,7 +48,8 @@
= project.full_name = project.full_name
%td %td
.float-right .float-right
= form_for project.runner_projects.new, url: admin_namespace_project_runner_projects_path(project.namespace, project), method: :post do |f| = gitlab_ui_form_for project.runner_projects.new, url: admin_namespace_project_runner_projects_path(project.namespace, project), method: :post do |f|
= f.hidden_field :runner_id, value: @runner.id = f.hidden_field :runner_id, value: @runner.id
= f.submit _('Enable'), class: 'gl-button btn btn-sm' = render Pajamas::ButtonComponent.new(size: :small, type: :submit) do
= _('Enable')
= paginate_without_count @projects = paginate_without_count @projects
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册