summaryrefslogtreecommitdiff
path: root/app/views/projects/settings/operations/_error_tracking.html.haml
blob: 583fc08f3751009e6538bdb768ffa7bdee5ed6c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
- return unless can?(current_user, :read_environment, @project)

- setting = error_tracking_setting

%section.settings.no-animate.js-error-tracking-settings
  .settings-header
    %h4
      = _('Error Tracking')
    %button.btn.js-settings-toggle{ type: 'button' }
      = _('Expand')
    %p
      = _('To link Sentry to GitLab, enter your Sentry URL and Auth Token.')
      = link_to _('More information'), help_page_path('user/project/operations/error_tracking'), target: '_blank', rel: 'noopener noreferrer'
  .settings-content
    .js-error-tracking-form{ data: { list_projects_endpoint: list_projects_project_error_tracking_index_path(@project, format: :json),
        operations_settings_endpoint: project_settings_operations_path(@project),
        project: error_tracking_setting_project_json,
        api_host: setting.api_host,
        enabled: setting.enabled.to_json,
        token: setting.token } }