Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
191c20d7
Commit
191c20d7
authored
Jan 06, 2019
by
Peter Leitzen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add error tracking setting partial
parent
abce3140
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
31 additions
and
0 deletions
+31
-0
app/views/projects/settings/operations/_error_tracking.html.haml
...ws/projects/settings/operations/_error_tracking.html.haml
+30
-0
app/views/projects/settings/operations/show.html.haml
app/views/projects/settings/operations/show.html.haml
+1
-0
No files found.
app/views/projects/settings/operations/_error_tracking.html.haml
0 → 100644
View file @
191c20d7
-
return
unless
Feature
.
enabled?
(
:error_tracking
,
@project
)
&&
can?
(
current_user
,
:read_environment
,
@project
)
-
setting
=
error_tracking_setting
%section
.settings.expanded.border-0.no-animate
.settings-header
%h4
=
_
(
'Error Tracking'
)
%p
=
_
(
'To link Sentry to GitLab, enter your Sentry URL and Auth Token.'
)
.settings-content
=
form_for
@project
,
url:
project_settings_operations_path
(
@project
),
method: :patch
do
|
f
|
=
form_errors
(
@project
)
.form-group
=
f
.
fields_for
:error_tracking_setting_attributes
,
setting
do
|
form
|
.form-check.form-group
=
form
.
check_box
:enabled
,
class:
'form-check-input'
=
form
.
label
:enabled
,
_
(
'Active'
),
class:
'form-check-label'
.form-group
=
form
.
label
:api_url
,
_
(
'Sentry API URL'
),
class:
'label-bold'
=
form
.
url_field
:api_url
,
class:
'form-control'
,
placeholder:
_
(
'http://<sentry-host>/api/0/projects/{organization_slug}/{project_slug}/issues/'
)
%p
.form-text.text-muted
=
_
(
'Enter your Sentry API URL'
)
.form-group
=
form
.
label
:token
,
_
(
'Auth Token'
),
class:
'label-bold'
=
form
.
text_field
:token
,
class:
'form-control'
%p
.form-text.text-muted
=
_
(
'Find and manage Auth Tokens in your Sentry account settings page.'
)
=
f
.
submit
_
(
'Save changes'
),
class:
'btn btn-success'
app/views/projects/settings/operations/show.html.haml
View file @
191c20d7
-
@content_class
=
'limit-container-width'
unless
fluid_layout
-
page_title
_
(
'Operations'
)
=
render
'projects/settings/operations/error_tracking'
,
expanded:
true
=
render_if_exists
'projects/settings/operations/tracing'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment