Skip to content
代码片段 群组 项目
提交 39cd54ec 编辑于 作者: Miguel Rincon's avatar Miguel Rincon
浏览文件

Merge branch...

Merge branch '363990-migrate-ee-app-views-admin-application_settings-to-pajamas-buttoncomponent' into 'master'

Updated buttons in the EE admin settings

See merge request gitlab-org/gitlab!89835
No related branches found
No related tags found
无相关合并请求
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
.settings-header{ data: { testid: 'expand_add_license_header' } } .settings-header{ data: { testid: 'expand_add_license_header' } }
%h4 %h4
= _('Add License') = _('Add License')
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button', data: { qa_selector: 'expand_add_license_button' } } = render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle', data: { qa_selector: 'expand_add_license_button' } }) do
= expanded_by_default? ? 'Collapse' : 'Expand' = expanded_by_default? ? 'Collapse' : 'Expand'
%p %p
- if License.current - if License.current
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
.settings-header .settings-header
%h4 %h4
= _('Custom project templates') = _('Custom project templates')
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' } = render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
= expanded ? _('Collapse') : _('Expand') = expanded ? _('Collapse') : _('Expand')
%p %p
= s_('AdminSettings|Select a group to use as the source for instance-level project templates.') = s_('AdminSettings|Select a group to use as the source for instance-level project templates.')
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
.settings-header .settings-header
%h4 %h4
= _('Incident Management Limits') = _('Incident Management Limits')
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' } = render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
= expanded_by_default? ? _('Collapse') : _('Expand') = expanded_by_default? ? _('Collapse') : _('Expand')
%p %p
= _('Limit the number of inbound incident management alerts that can be sent to a project.') = _('Limit the number of inbound incident management alerts that can be sent to a project.')
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
.settings-header .settings-header
%h4 %h4
= _('Advanced Search') = _('Advanced Search')
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button', data: { qa_selector: 'expand_advanced_search_button' } } = render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle', data: { qa_selector: 'expand_advanced_search_button' } }) do
= expanded_by_default? ? _('Collapse') : _('Expand') = expanded_by_default? ? _('Collapse') : _('Expand')
%p %p
= _('Configure settings for Advanced Search with Elasticsearch.') = _('Configure settings for Advanced Search with Elasticsearch.')
...@@ -195,7 +195,7 @@ ...@@ -195,7 +195,7 @@
.settings-header .settings-header
%h4 %h4
= _('Elasticsearch zero-downtime reindexing') = _('Elasticsearch zero-downtime reindexing')
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' } = render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
= expanded_by_default? ? _('Collapse') : _('Expand') = expanded_by_default? ? _('Collapse') : _('Expand')
%p %p
= _('Trigger cluster reindexing. Only use this with an index that was created in GitLab 13.0 or later.') = _('Trigger cluster reindexing. Only use this with an index that was created in GitLab 13.0 or later.')
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
.settings-header .settings-header
%h4 %h4
= _('Maintenance mode') = _('Maintenance mode')
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' } = render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
= expanded_by_default? ? _('Collapse') : _('Expand') = expanded_by_default? ? _('Collapse') : _('Expand')
%p %p
= _('Prevent users from performing write operations while GitLab maintenance is in progress.') = _('Prevent users from performing write operations while GitLab maintenance is in progress.')
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
.settings-header .settings-header
%h4 %h4
= s_('AdminSettings|Required pipeline configuration') = s_('AdminSettings|Required pipeline configuration')
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' } = render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
= expanded ? _('Collapse') : _('Expand') = expanded ? _('Collapse') : _('Expand')
%p %p
- config_link_start = '<a href="%{url}">'.html_safe % { url: help_page_path('user/admin_area/settings/continuous_integration', anchor: 'required-pipeline-configuration') } - config_link_start = '<a href="%{url}">'.html_safe % { url: help_page_path('user/admin_area/settings/continuous_integration', anchor: 'required-pipeline-configuration') }
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
.settings-header .settings-header
%h4 %h4
= _('Slack application') = _('Slack application')
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' } = render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
= expanded ? _('Collapse') : _('Expand') = expanded ? _('Collapse') : _('Expand')
%p %p
= _('Slack integration allows you to interact with GitLab via slash commands in a chat window.') = _('Slack integration allows you to interact with GitLab via slash commands in a chat window.')
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
.settings-header .settings-header
%h4 %h4
= _('Templates') = _('Templates')
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' } = render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
= expanded ? _('Collapse') : _('Expand') = expanded ? _('Collapse') : _('Expand')
%p %p
= _('Select a repository containing templates for common files.') = _('Select a repository containing templates for common files.')
......
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册