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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
18704a47
Commit
18704a47
authored
May 16, 2020
by
David O'Regan
Committed by
Natalia Tepluhina
May 16, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update alert details mobile display
parent
b0dc27be
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
5 deletions
+16
-5
app/assets/javascripts/alert_management/components/alert_details.vue
...javascripts/alert_management/components/alert_details.vue
+9
-5
app/assets/stylesheets/pages/alerts_list.scss
app/assets/stylesheets/pages/alerts_list.scss
+7
-0
No files found.
app/assets/javascripts/alert_management/components/alert_details.vue
View file @
18704a47
...
@@ -133,30 +133,34 @@ export default {
...
@@ -133,30 +133,34 @@ export default {
<div
v-if=
"loading"
><gl-loading-icon
size=
"lg"
class=
"gl-mt-5"
/></div>
<div
v-if=
"loading"
><gl-loading-icon
size=
"lg"
class=
"gl-mt-5"
/></div>
<div
v-if=
"alert"
class=
"alert-management-details gl-relative"
>
<div
v-if=
"alert"
class=
"alert-management-details gl-relative"
>
<div
<div
class=
"gl-display-flex gl-justify-content-space-between gl-align-items-center gl-px-1 gl-py-6 gl-border-b-1 gl-border-b-gray-200 gl-border-b-solid"
class=
"gl-display-flex gl-justify-content-space-between gl-align-items-baseline gl-px-1 py-3 py-md-4 gl-border-b-1 gl-border-b-gray-200 gl-border-b-solid flex-column flex-sm-row"
>
<div
data-testid=
"alert-header"
class=
"gl-display-flex gl-align-items-center gl-justify-content-center"
>
>
<div
data-testid=
"alert-header"
>
<div
<div
class=
"gl-display-inline-flex gl-align-items-center gl-justify-content-space-between"
class=
"gl-display-inline-flex gl-align-items-center gl-justify-content-space-between"
>
>
<gl-icon
<gl-icon
class=
"gl-mr-3"
class=
"gl-mr-3
align-middle
"
:size=
"12"
:size=
"12"
:name=
"`severity-$
{alert.severity.toLowerCase()}`"
:name=
"`severity-$
{alert.severity.toLowerCase()}`"
:class="`icon-${alert.severity.toLowerCase()}`"
:class="`icon-${alert.severity.toLowerCase()}`"
/>
/>
<strong>
{{
$options
.
severityLabels
[
alert
.
severity
]
}}
</strong>
<strong>
{{
$options
.
severityLabels
[
alert
.
severity
]
}}
</strong>
</div>
</div>
<span
class=
"
gl-shim-
mx-2"
>
•
</span>
<span
class=
"mx-2"
>
•
</span>
<gl-sprintf
:message=
"reportedAtMessage"
>
<gl-sprintf
:message=
"reportedAtMessage"
>
<template
#when
>
<template
#when
>
<time-ago-tooltip
:time=
"alert.createdAt"
/>
<time-ago-tooltip
:time=
"alert.createdAt"
class=
"gl-ml-3"
/>
</
template
>
</
template
>
<
template
#tool
>
{{
alert
.
monitoringTool
}}
</
template
>
<
template
#tool
>
{{
alert
.
monitoringTool
}}
</
template
>
</gl-sprintf>
</gl-sprintf>
</div>
</div>
<gl-button
<gl-button
v-if=
"glFeatures.createIssueFromAlertEnabled"
v-if=
"glFeatures.createIssueFromAlertEnabled"
class=
"gl-mt-3 mt-sm-0 align-self-center align-self-sm-baseline"
data-testid=
"createIssueBtn"
data-testid=
"createIssueBtn"
:href=
"newIssuePath"
:href=
"newIssuePath"
category=
"primary"
category=
"primary"
...
...
app/assets/stylesheets/pages/alerts_list.scss
View file @
18704a47
...
@@ -97,6 +97,13 @@
...
@@ -97,6 +97,13 @@
}
}
}
}
@include
media-breakpoint-down
(
xs
)
{
// TODO Remove in favour of a details CSS page
[
data-testid
=
'createIssueBtn'
]
{
width
:
100%
;
}
}
.gl-tab-nav-item
{
.gl-tab-nav-item
{
color
:
$gl-gray-600
;
color
:
$gl-gray-600
;
...
...
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