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
8e30f01f
Commit
8e30f01f
authored
Oct 26, 2020
by
Brandon Labuschagne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move devops markup to partial
parent
9f498701
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
28 additions
and
27 deletions
+28
-27
app/views/admin/dev_ops_report/_report.html.haml
app/views/admin/dev_ops_report/_report.html.haml
+28
-18
app/views/admin/dev_ops_report/show.html.haml
app/views/admin/dev_ops_report/show.html.haml
+0
-9
No files found.
app/views/admin/dev_ops_report/_report.html.haml
View file @
8e30f01f
.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'
)
-
usage_ping_enabled
=
Gitlab
::
CurrentSettings
.
usage_ping_enabled
.devops-cards.board-card-container
-
@metric
.
cards
.
each
do
|
card
|
=
render
'card'
,
card:
card
-
if
usage_ping_enabled
&&
show_callout?
(
'dev_ops_report_intro_callout_dismissed'
)
=
render
'callout'
.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
-
if
!
usage_ping_enabled
#js-devops-empty-state
{
data:
{
is_admin:
current_user
&
.
admin
.
to_s
,
empty_state_svg_path:
image_path
(
'illustrations/convdev/convdev_no_index.svg'
),
enable_usage_ping_link:
metrics_and_profiling_admin_application_settings_path
(
anchor:
'js-usage-settings'
),
docs_link:
help_page_path
(
'development/product_analytics/usage_ping'
)
}
}
-
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
app/views/admin/dev_ops_report/show.html.haml
View file @
8e30f01f
-
page_title
_
(
'DevOps Report'
)
-
usage_ping_enabled
=
Gitlab
::
CurrentSettings
.
usage_ping_enabled
-
add_page_specific_style
'page_bundles/dev_ops_report'
.container
-
if
usage_ping_enabled
&&
show_callout?
(
'dev_ops_report_intro_callout_dismissed'
)
=
render
'callout'
.gl-mt-3
-
if
!
usage_ping_enabled
#js-devops-empty-state
{
data:
{
is_admin:
current_user
&
.
admin
.
to_s
,
empty_state_svg_path:
image_path
(
'illustrations/convdev/convdev_no_index.svg'
),
enable_usage_ping_link:
metrics_and_profiling_admin_application_settings_path
(
anchor:
'js-usage-settings'
),
docs_link:
help_page_path
(
'development/product_analytics/usage_ping'
)
}
}
-
elsif
@metric
.
blank?
=
render
'no_data'
-
else
=
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