Legend for colors in stats
This commit is contained in:
@@ -95,10 +95,21 @@
|
|||||||
padding: 10px
|
padding: 10px
|
||||||
|
|
||||||
.progress
|
.progress
|
||||||
margin-bottom: 0
|
margin-bottom: 10px
|
||||||
|
height: 4px
|
||||||
h4
|
h4
|
||||||
margin-top: 0
|
margin-top: 0
|
||||||
|
|
||||||
|
.d-stats-card-legend
|
||||||
|
display: flex
|
||||||
|
justify-content: space-between
|
||||||
|
font-size: .95em
|
||||||
|
|
||||||
|
.d-stats-card-item
|
||||||
|
@include status-color-property(color, '', 'dark')
|
||||||
|
|
||||||
|
label
|
||||||
|
|
||||||
.d-activity
|
.d-activity
|
||||||
margin: 0 20px 15px
|
margin: 0 20px 15px
|
||||||
a
|
a
|
||||||
|
@@ -6,7 +6,7 @@
|
|||||||
#col_main
|
#col_main
|
||||||
.dashboard
|
.dashboard
|
||||||
.d-stats
|
.d-stats
|
||||||
h3
|
h4
|
||||||
i.pi-attract
|
i.pi-attract
|
||||||
| Attract
|
| Attract
|
||||||
| {% if current_user.is_authenticated %}
|
| {% if current_user.is_authenticated %}
|
||||||
@@ -19,7 +19,7 @@
|
|||||||
#col_right
|
#col_right
|
||||||
.dashboard
|
.dashboard
|
||||||
.d-stats
|
.d-stats
|
||||||
h3 Statistics
|
h4 Statistics
|
||||||
|
|
||||||
| {% for proj, summary in projs_with_summaries %}
|
| {% for proj, summary in projs_with_summaries %}
|
||||||
.d-stats-card
|
.d-stats-card
|
||||||
@@ -39,14 +39,21 @@
|
|||||||
title="{{ status | undertitle }} ({{percentage}}%)",
|
title="{{ status | undertitle }} ({{percentage}}%)",
|
||||||
role="progressbar",
|
role="progressbar",
|
||||||
style="width:{{percentage}}%")
|
style="width:{{percentage}}%")
|
||||||
| {{ status | undertitle }}
|
| {% endfor %}
|
||||||
|
|
||||||
|
.d-stats-card-legend
|
||||||
|
| {% for status, percentage in summary.percentages() %}
|
||||||
|
label.d-stats-card-item(
|
||||||
|
class="status-{{status}}",
|
||||||
|
title="{{ status | undertitle }} ({{percentage}}%)")
|
||||||
|
| {{percentage}}% {{ status | undertitle }}
|
||||||
| {% endfor %}
|
| {% endfor %}
|
||||||
| {% endfor %}
|
| {% endfor %}
|
||||||
|
|
||||||
hr
|
hr
|
||||||
|
|
||||||
.d-activity
|
.d-activity
|
||||||
h3 Activity Stream
|
h4 Activity Stream
|
||||||
|
|
||||||
ul
|
ul
|
||||||
| {% for act in activities['_items'] %}
|
| {% for act in activities['_items'] %}
|
||||||
|
Reference in New Issue
Block a user