Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/admin/dev_ops_report/_card.html.haml')
-rw-r--r--app/views/admin/dev_ops_report/_card.html.haml25
1 files changed, 25 insertions, 0 deletions
diff --git a/app/views/admin/dev_ops_report/_card.html.haml b/app/views/admin/dev_ops_report/_card.html.haml
new file mode 100644
index 00000000000..dd6e5c0f108
--- /dev/null
+++ b/app/views/admin/dev_ops_report/_card.html.haml
@@ -0,0 +1,25 @@
+.devops-card-wrapper
+ .devops-card{ class: "devops-card-#{score_level(card.percentage_score)}" }
+ .devops-card-title
+ %h3
+ = card.title
+ .light-text
+ = card.description
+ .board-card-scores
+ .board-card-score
+ .board-card-score-value
+ = format_score(card.instance_score)
+ .board-card-score-name= _('You')
+ .board-card-score
+ .board-card-score-value
+ = format_score(card.leader_score)
+ .board-card-score-name= _('Lead')
+ .board-card-score-big
+ = number_to_percentage(card.percentage_score, precision: 1)
+ .board-card-buttons
+ - if card.blog
+ %a.btn-svg{ href: card.blog }
+ = sprite_icon('information-o')
+ - if card.docs
+ %a.btn-svg{ href: card.docs }
+ = sprite_icon('question-o')