2020-11-24 15:15:51 +05:30
|
|
|
- page_title _('DevOps Report')
|
2018-11-20 20:47:30 +05:30
|
|
|
- usage_ping_enabled = Gitlab::CurrentSettings.usage_ping_enabled
|
2017-09-10 17:25:29 +05:30
|
|
|
|
|
|
|
.container
|
2020-11-24 15:15:51 +05:30
|
|
|
- if usage_ping_enabled && show_callout?('dev_ops_report_intro_callout_dismissed')
|
2017-09-10 17:25:29 +05:30
|
|
|
= render 'callout'
|
|
|
|
|
2020-07-28 23:09:34 +05:30
|
|
|
.gl-mt-3
|
2018-11-20 20:47:30 +05:30
|
|
|
- if !usage_ping_enabled
|
2020-11-24 15:15:51 +05:30
|
|
|
#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/telemetry/usage_ping') } }
|
2017-09-10 17:25:29 +05:30
|
|
|
- elsif @metric.blank?
|
|
|
|
= render 'no_data'
|
|
|
|
- else
|
2020-01-01 13:55:28 +05:30
|
|
|
.devops
|
|
|
|
.devops-header
|
|
|
|
%h2.devops-header-title{ class: "devops-#{score_level(@metric.average_percentage_score)}-score" }
|
2017-09-10 17:25:29 +05:30
|
|
|
= number_to_percentage(@metric.average_percentage_score, precision: 1)
|
2020-01-01 13:55:28 +05:30
|
|
|
.devops-header-subtitle
|
2020-11-24 15:15:51 +05:30
|
|
|
= _('DevOps')
|
2017-09-10 17:25:29 +05:30
|
|
|
%br
|
2020-11-24 15:15:51 +05:30
|
|
|
= _('Score')
|
|
|
|
= link_to sprite_icon('question-o', css_class: 'devops-header-icon'), help_page_path('user/admin_area/analytics/dev_ops_report')
|
2017-09-10 17:25:29 +05:30
|
|
|
|
2020-01-01 13:55:28 +05:30
|
|
|
.devops-cards.board-card-container
|
2017-09-10 17:25:29 +05:30
|
|
|
- @metric.cards.each do |card|
|
|
|
|
= render 'card', card: card
|
|
|
|
|
2020-01-01 13:55:28 +05:30
|
|
|
.devops-steps.d-none.d-lg-block.d-xl-block
|
2017-09-10 17:25:29 +05:30
|
|
|
- @metric.idea_to_production_steps.each_with_index do |step, index|
|
2020-01-01 13:55:28 +05:30
|
|
|
.devops-step{ class: "devops-#{score_level(step.percentage_score)}-score" }
|
2017-09-10 17:25:29 +05:30
|
|
|
= custom_icon("i2p_step_#{index + 1}")
|
2020-01-01 13:55:28 +05:30
|
|
|
%h4.devops-step-title
|
2017-09-10 17:25:29 +05:30
|
|
|
= step.title
|