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
8a03abdf
Commit
8a03abdf
authored
Oct 23, 2020
by
Brandon Labuschagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move DevOps report into partial
parent
b0961026
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
20 deletions
+21
-20
app/views/admin/dev_ops_report/_report.html.haml
app/views/admin/dev_ops_report/_report.html.haml
+20
-0
app/views/admin/dev_ops_report/show.html.haml
app/views/admin/dev_ops_report/show.html.haml
+1
-20
No files found.
app/views/admin/dev_ops_report/_report.html.haml
0 → 100644
View file @
8a03abdf
.devops
.devops-header
%h2
.devops-header-title
{
class:
"devops-#{score_level(@metric.average_percentage_score)}-score"
}
=
number_to_percentage
(
@metric
.
average_percentage_score
,
precision:
1
)
.devops-header-subtitle
=
_
(
'DevOps'
)
%br
=
_
(
'Score'
)
=
link_to
sprite_icon
(
'question-o'
,
css_class:
'devops-header-icon'
),
help_page_path
(
'user/admin_area/analytics/dev_ops_report'
)
.devops-cards.board-card-container
-
@metric
.
cards
.
each
do
|
card
|
=
render
'card'
,
card:
card
.devops-steps.d-none.d-lg-block
-
@metric
.
idea_to_production_steps
.
each_with_index
do
|
step
,
index
|
.devops-step
{
class:
"devops-#{score_level(step.percentage_score)}-score"
}
=
custom_icon
(
"i2p_step_
#{
index
+
1
}
"
)
%h4
.devops-step-title
=
step
.
title
app/views/admin/dev_ops_report/show.html.haml
View file @
8a03abdf
...
...
@@ -12,23 +12,4 @@
-
elsif
@metric
.
blank?
=
render
'no_data'
-
else
.devops
.devops-header
%h2
.devops-header-title
{
class:
"devops-#{score_level(@metric.average_percentage_score)}-score"
}
=
number_to_percentage
(
@metric
.
average_percentage_score
,
precision:
1
)
.devops-header-subtitle
=
_
(
'DevOps'
)
%br
=
_
(
'Score'
)
=
link_to
sprite_icon
(
'question-o'
,
css_class:
'devops-header-icon'
),
help_page_path
(
'user/admin_area/analytics/dev_ops_report'
)
.devops-cards.board-card-container
-
@metric
.
cards
.
each
do
|
card
|
=
render
'card'
,
card:
card
.devops-steps.d-none.d-lg-block
-
@metric
.
idea_to_production_steps
.
each_with_index
do
|
step
,
index
|
.devops-step
{
class:
"devops-#{score_level(step.percentage_score)}-score"
}
=
custom_icon
(
"i2p_step_
#{
index
+
1
}
"
)
%h4
.devops-step-title
=
step
.
title
=
render
'report'
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