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
b5e66b4b
Commit
b5e66b4b
authored
Oct 15, 2020
by
mfluharty
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Show recent failures count per case
parent
ce5c65f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
app/assets/javascripts/reports/components/test_issue_body.vue
...assets/javascripts/reports/components/test_issue_body.vue
+16
-1
No files found.
app/assets/javascripts/reports/components/test_issue_body.vue
View file @
b5e66b4b
<
script
>
import
{
mapActions
}
from
'
vuex
'
;
import
{
GlBadge
}
from
'
@gitlab/ui
'
;
import
{
n__
}
from
'
~/locale
'
;
export
default
{
name
:
'
TestIssueBody
'
,
components
:
{
GlBadge
,
},
props
:
{
issue
:
{
type
:
Object
,
...
...
@@ -21,6 +26,13 @@ export default {
},
methods
:
{
...
mapActions
([
'
openModal
'
]),
recentFailuresText
(
count
)
{
return
n__
(
'
Failed %d time in the last 14 days
'
,
'
Failed %d times in the last 14 days
'
,
count
,
);
},
},
};
</
script
>
...
...
@@ -32,7 +44,10 @@ export default {
class=
"btn-link btn-blank text-left break-link vulnerability-name-button"
@
click=
"openModal(
{ issue })"
>
<div
v-if=
"isNew"
class=
"badge badge-danger gl-mr-2"
>
{{
s__
(
'
New
'
)
}}
</div>
<gl-badge
v-if=
"isNew"
variant=
"danger"
class=
"gl-mr-2"
>
{{
s__
(
'
New
'
)
}}
</gl-badge>
<gl-badge
v-if=
"issue.recent_failures"
variant=
"warning"
class=
"gl-mr-2"
>
{{
recentFailuresText
(
issue
.
recent_failures
)
}}
</gl-badge>
{{
issue
.
name
}}
</button>
</div>
...
...
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