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

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

15 lines
864 B
Text
Raw Normal View History

2022-06-21 17:19:12 +05:30
= gitlab_ui_form_for @application_setting, url: metrics_and_profiling_admin_application_settings_path(anchor: 'js-grafana-settings'), html: { class: 'fieldset-form' } do |f|
2019-09-30 21:07:59 +05:30
= form_errors(@application_setting)
%fieldset
.form-group
2022-06-21 17:19:12 +05:30
= f.gitlab_ui_checkbox_component :grafana_enabled,
s_('ApplicationSettings|Add a link to Grafana'),
help_text: s_('ApplicationSettings|A Metrics Dashboard menu item appears in the Monitoring section of the Admin Area.')
2019-09-30 21:07:59 +05:30
.form-group
= f.label :grafana_url, _('Grafana URL'), class: 'label-bold'
2021-03-11 19:13:27 +05:30
= f.text_field :grafana_url, class: 'form-control gl-form-input', placeholder: '/-/grafana'
2021-10-27 15:23:28 +05:30
%span.form-text.text-muted#support_help_block= _('URL of the Grafana instance to link to from the Metrics Dashboard menu item.')
2019-09-30 21:07:59 +05:30
2021-04-17 20:07:23 +05:30
= f.submit _('Save changes'), class: "gl-button btn btn-confirm"