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

29 lines
1.5 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
%h4
= _('Gitpod')
2021-01-29 00:20:46 +05:30
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' }
2020-11-24 15:15:51 +05:30
= expanded ? _('Collapse') : _('Expand')
%p
2021-01-29 00:20:46 +05:30
%integration-help-text{ "id" => "js-gitpod-settings-help-text", "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
= form_for @application_setting, url: general_admin_application_settings_path(anchor: 'js-gitpod-settings'), html: { class: 'fieldset-form' } do |f|
= form_errors(@application_setting)
%fieldset
.form-group
.form-check
= f.check_box :gitpod_enabled, class: 'form-check-input'
= f.label :gitpod_enabled, s_('Gitpod|Enable Gitpod integration'), class: 'form-check-label'
.form-group
= f.label :gitpod_url, s_('Gitpod|Gitpod URL'), class: 'label-bold'
2021-03-11 19:13:27 +05:30
= f.text_field :gitpod_url, class: 'form-control gl-form-input', placeholder: s_('Gitpod|e.g. https://gitpod.example.com')
2020-11-24 15:15:51 +05:30
.form-text.text-muted
= s_('Gitpod|Add the URL to your Gitpod instance configured to read your GitLab projects.')
2021-01-03 14:25:43 +05:30
= f.submit s_('Save changes'), class: 'gl-button btn btn-success'