Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
A
admin-fe
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maxim Filippov
admin-fe
Commits
d29cd299
Commit
d29cd299
authored
5 years ago
by
Angelina Filippova
Browse files
Options
Downloads
Patches
Plain Diff
Add report count
parent
a0667c1f
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/views/reports/index.vue
+12
-1
12 additions, 1 deletion
src/views/reports/index.vue
with
12 additions
and
1 deletion
src/views/reports/index.vue
+
12
−
1
View file @
d29cd299
<
template
>
<div
class=
"reports-container"
>
<h1>
{{
$t
(
'
reports.reports
'
)
}}
</h1>
<h1>
{{
$t
(
'
reports.reports
'
)
}}
<span
class=
"report-count"
>
(
{{
normalizedReportsCount
}}
)
</span>
</h1>
<div
class=
"filter-container"
>
<reports-filter/>
<el-checkbox
v-model=
"groupReports"
class=
"group-reports-checkbox"
>
...
...
@@ -19,6 +22,7 @@
<
script
>
import
GroupedReport
from
'
./components/GroupedReport
'
import
numeral
from
'
numeral
'
import
Report
from
'
./components/Report
'
import
ReportsFilter
from
'
./components/ReportsFilter
'
...
...
@@ -197,6 +201,9 @@ export default {
loading
()
{
return
this
.
$store
.
state
.
reports
.
loading
},
normalizedReportsCount
()
{
return
numeral
(
this
.
$store
.
state
.
reports
.
totalReportsCount
).
format
(
'
0a
'
)
},
reports
()
{
return
this
.
$store
.
state
.
reports
.
fetchedReports
}
...
...
@@ -234,6 +241,10 @@ export default {
color
:
gray
;
margin-left
:
19px
}
.report-count
{
color
:
gray
;
font-size
:
28px
;
}
}
@media
only
screen
and
(
max-width
:
760px
)
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment