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

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

26 lines
1.4 KiB
Text
Raw Normal View History

2019-12-26 22:10:19 +05:30
- expanded = integration_expanded?('plantuml_')
%section.settings.as-plantuml.no-animate#js-plantuml-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
2019-12-26 22:10:19 +05:30
= _('PlantUML')
2022-07-23 23:45:48 +05:30
= render Pajamas::ButtonComponent.new(button_options: { class: 'js-settings-toggle' }) do
2019-12-26 22:10:19 +05:30
= expanded ? _('Collapse') : _('Expand')
%p
2021-10-27 15:23:28 +05:30
= _('Render diagrams in your documents using PlantUML.')
= link_to _('Learn more.'), help_page_path('administration/integration/plantuml.md'), target: '_blank', rel: 'noopener noreferrer'
2019-12-26 22:10:19 +05:30
.settings-content
2022-06-21 17:19:12 +05:30
= gitlab_ui_form_for @application_setting, url: general_admin_application_settings_path(anchor: 'js-plantuml-settings'), html: { class: 'fieldset-form', id: 'plantuml-settings' } do |f|
2022-10-11 01:57:18 +05:30
= form_errors(@application_setting) if expanded
2018-05-09 12:01:36 +05:30
2019-12-26 22:10:19 +05:30
%fieldset
.form-group
2022-06-21 17:19:12 +05:30
= f.gitlab_ui_checkbox_component :plantuml_enabled,
_('Enable PlantUML')
2019-12-26 22:10:19 +05:30
.form-group
2021-06-08 01:23:25 +05:30
= f.label :plantuml_url, _('PlantUML URL'), class: 'label-bold'
2021-03-11 19:13:27 +05:30
= f.text_field :plantuml_url, class: 'form-control gl-form-input', placeholder: 'http://your-plantuml-instance:8080'
2019-12-26 22:10:19 +05:30
.form-text.text-muted
2021-10-27 15:23:28 +05:30
= _('The hostname of your PlantUML server.')
2018-05-09 12:01:36 +05:30
2021-04-17 20:07:23 +05:30
= f.submit _('Save changes'), class: "gl-button btn btn-confirm"