2017-09-10 17:25:29 +05:30
|
|
|
- @no_container = true
|
|
|
|
- page_title 'ConvDev Index'
|
|
|
|
|
|
|
|
.container
|
|
|
|
- if show_callout?('convdev_intro_callout_dismissed')
|
|
|
|
= render 'callout'
|
|
|
|
|
|
|
|
.prepend-top-default
|
2018-03-17 18:26:18 +05:30
|
|
|
- if !Gitlab::CurrentSettings.usage_ping_enabled
|
2017-09-10 17:25:29 +05:30
|
|
|
= render 'disabled'
|
|
|
|
- elsif @metric.blank?
|
|
|
|
= render 'no_data'
|
|
|
|
- else
|
|
|
|
.convdev
|
|
|
|
.convdev-header
|
|
|
|
%h2.convdev-header-title{ class: "convdev-#{score_level(@metric.average_percentage_score)}-score" }
|
|
|
|
= number_to_percentage(@metric.average_percentage_score, precision: 1)
|
|
|
|
.convdev-header-subtitle
|
|
|
|
index
|
|
|
|
%br
|
|
|
|
score
|
2018-11-18 11:00:15 +05:30
|
|
|
= link_to icon('question-circle', 'aria-hidden' => 'true'), help_page_path('user/instance_statistics/convdev')
|
2017-09-10 17:25:29 +05:30
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
.convdev-cards.board-card-container
|
2017-09-10 17:25:29 +05:30
|
|
|
- @metric.cards.each do |card|
|
|
|
|
= render 'card', card: card
|
|
|
|
|
2018-11-08 19:23:39 +05:30
|
|
|
.convdev-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|
|
|
|
|
.convdev-step{ class: "convdev-#{score_level(step.percentage_score)}-score" }
|
|
|
|
= custom_icon("i2p_step_#{index + 1}")
|
|
|
|
%h4.convdev-step-title
|
|
|
|
= step.title
|