debian-mirror-gitlab/app/views/admin/application_settings/_gitpod.html.haml

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

30 lines
1.8 KiB
Text
Raw Normal View History

2020-11-24 15:15:51 +05:30
- expanded = integration_expanded?('gitpod_')
%section.settings.no-animate#js-gitpod-settings{ class: ('expanded' if expanded) }
.settings-header
2022-08-13 15:12:31 +05:30
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
2020-11-24 15:15:51 +05:30
= _('Gitpod')
2022-07-23 23:45:48 +05:30
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
2020-11-24 15:15:51 +05:30
= expanded ? _('Collapse') : _('Expand')
%p
2021-04-17 20:07:23 +05:30
#js-gitpod-settings-help-text{ data: {"message" => gitpod_enable_description, "message-url" => "https://gitpod.io/" } }
2020-11-24 15:15:51 +05:30
= link_to sprite_icon('question-o'), help_page_path('integration/gitpod.md'), target: '_blank', class: 'has-tooltip', title: _('More information')
.settings-content
2022-06-21 17:19:12 +05:30
= gitlab_ui_form_for @application_setting, url: general_admin_application_settings_path(anchor: 'js-gitpod-settings'), html: { class: 'fieldset-form', id: 'gitpod-settings' } do |f|
2022-10-11 01:57:18 +05:30
= form_errors(@application_setting)
2020-11-24 15:15:51 +05:30
%fieldset
.form-group
2022-06-21 17:19:12 +05:30
= f.gitlab_ui_checkbox_component :gitpod_enabled,
s_('Gitpod|Enable Gitpod integration')
2020-11-24 15:15:51 +05:30
.form-group
= f.label :gitpod_url, s_('Gitpod|Gitpod URL'), class: 'label-bold'
2021-09-04 01:27:46 +05:30
= f.text_field :gitpod_url, class: 'form-control gl-form-input', placeholder: s_('Gitpod|https://gitpod.example.com')
2020-11-24 15:15:51 +05:30
.form-text.text-muted
2021-09-04 01:27:46 +05:30
= s_('Gitpod|The URL to your Gitpod instance configured to read your GitLab projects, such as https://gitpod.example.com.')
- link_start = '<a href="%{url}">'.html_safe % { url: help_page_path('integration/gitpod', anchor: 'enable-gitpod-in-your-user-settings') }
= s_('Gitpod|To use the integration, each user must also enable Gitpod on their GitLab account. %{link_start}How do I enable it?%{link_end} ').html_safe % { link_start: link_start, link_end: '</a>'.html_safe }
2022-11-25 23:54:43 +05:30
= f.submit _('Save changes'), pajamas_button: true