summaryrefslogtreecommitdiff
path: root/app/views/admin/application_settings/_plantuml.html.haml
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2018-04-04 12:44:32 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2018-04-04 12:44:32 +0300
commit442528e57775751afc517ab7c247de99e95bbadf (patch)
tree3fda297eefc2ff954166816d39aa2f783ddb7cbb /app/views/admin/application_settings/_plantuml.html.haml
parent242345a0251082d851461f8066e3b0dce26203ac (diff)
downloadgitlab-ce-442528e57775751afc517ab7c247de99e95bbadf.tar.gz
Move the rest of application settings to expandable blocks
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/views/admin/application_settings/_plantuml.html.haml')
-rw-r--r--app/views/admin/application_settings/_plantuml.html.haml20
1 files changed, 20 insertions, 0 deletions
diff --git a/app/views/admin/application_settings/_plantuml.html.haml b/app/views/admin/application_settings/_plantuml.html.haml
new file mode 100644
index 00000000000..56764b3fb81
--- /dev/null
+++ b/app/views/admin/application_settings/_plantuml.html.haml
@@ -0,0 +1,20 @@
+= form_for @application_setting, url: admin_application_settings_path, html: { class: 'form-horizontal fieldset-form' } do |f|
+ = form_errors(@application_setting)
+
+ %fieldset
+ .form-group
+ .col-sm-offset-2.col-sm-10
+ .checkbox
+ = f.label :plantuml_enabled do
+ = f.check_box :plantuml_enabled
+ Enable PlantUML
+ .form-group
+ = f.label :plantuml_url, 'PlantUML URL', class: 'control-label col-sm-2'
+ .col-sm-10
+ = f.text_field :plantuml_url, class: 'form-control', placeholder: 'http://gitlab.your-plantuml-instance.com:8080'
+ .help-block
+ Allow rendering of
+ = link_to "PlantUML", "http://plantuml.com"
+ diagrams in Asciidoc documents using an external PlantUML service.
+
+ = f.submit 'Save changes', class: "btn btn-success"