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
|
|
|
|
%h4
|
|
|
|
= _('PlantUML')
|
2021-01-29 00:20:46 +05:30
|
|
|
%button.btn.gl-button.btn-default.js-settings-toggle{ type: 'button' }
|
2019-12-26 22:10:19 +05:30
|
|
|
= expanded ? _('Collapse') : _('Expand')
|
|
|
|
%p
|
|
|
|
= _('Allow rendering of PlantUML diagrams in Asciidoc documents.')
|
|
|
|
.settings-content
|
2021-04-29 21:17:54 +05:30
|
|
|
= form_for @application_setting, url: general_admin_application_settings_path(anchor: 'js-plantuml-settings'), html: { class: 'fieldset-form', id: 'plantuml-settings' } do |f|
|
2019-12-26 22:10:19 +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
|
|
|
|
.form-check
|
|
|
|
= f.check_box :plantuml_enabled, class: 'form-check-input'
|
|
|
|
= f.label :plantuml_enabled, _('Enable PlantUML'), class: 'form-check-label'
|
|
|
|
.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
|
|
|
|
Allow rendering of
|
|
|
|
= link_to "PlantUML", "http://plantuml.com"
|
|
|
|
diagrams in Asciidoc documents using an external PlantUML service.
|
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"
|