debian-mirror-gitlab/app/views/projects/settings/operations/_tracing.html.haml

25 lines
1.5 KiB
Text
Raw Normal View History

2021-01-03 14:25:43 +05:30
- setting = tracing_setting
%section.settings.border-0.no-animate
2021-09-04 01:27:46 +05:30
.settings-header{ :class => 'border-top' }
2021-04-29 21:17:54 +05:30
%h4.settings-title.js-settings-toggle.js-settings-toggle-trigger-only
2021-09-04 01:27:46 +05:30
= _('Tracing')
2021-04-29 21:17:54 +05:30
%button.btn.btn-default.gl-button.js-settings-toggle{ type: 'button' }
2021-01-03 14:25:43 +05:30
= _('Expand')
%p
2021-09-04 01:27:46 +05:30
= _('Embed an image of your existing Jaeger server in GitLab.')
2021-04-29 21:17:54 +05:30
= link_to _('Learn more.'), help_page_path('operations/tracing'), target: '_blank', rel: 'noopener noreferrer'
2021-01-03 14:25:43 +05:30
.settings-content
= form_for @project, url: project_settings_operations_path(@project), method: :patch do |f|
= form_errors(@project)
.form-group
= f.fields_for :tracing_setting_attributes, setting do |form|
= form.label :external_url, _('Jaeger URL'), class: 'label-bold'
2021-04-29 21:17:54 +05:30
= form.url_field :external_url, class: 'form-control gl-form-input', placeholder: 'https://jaeger.example.com'
2021-01-03 14:25:43 +05:30
%p.form-text.text-muted
2021-09-04 01:27:46 +05:30
- jaeger_help_url = 'https://www.jaegertracing.io/docs/getting-started/'
2021-01-03 14:25:43 +05:30
- link_start_tag = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: jaeger_help_url }
2021-09-04 01:27:46 +05:30
- link_end_tag = "#{sprite_icon('external-link', css_class: 'gl-ml-2 gl-vertical-align-middle')}</a>".html_safe
= _('Learn more about %{link_start_tag}Jaeger configuration%{link_end_tag}.').html_safe % { link_start_tag: link_start_tag, link_end_tag: link_end_tag }
2021-04-29 21:17:54 +05:30
= f.submit _('Save changes'), class: 'gl-button btn btn-confirm'