You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
20 lines
592 B
20 lines
592 B
//- common routines for all views everywhere
|
|
|
|
include button-icon
|
|
include section-title
|
|
|
|
-
|
|
function formatCount(value) {
|
|
value = value || 0;
|
|
return (value < 1000) ? numeral(value).format('0,0') : numeral(value).format('0,0.0a');
|
|
}
|
|
|
|
mixin renderCell (label, value, className)
|
|
div(style="padding: 10px 20px;", title=`${label}: ${numeral(value).format('0,0')}`).uk-card.uk-card-default.uk-card-body.no-select
|
|
.uk-text-muted= label
|
|
div(class=className)= value
|
|
|
|
-
|
|
function displayIntegerValue (value) {
|
|
return numeral(value).format(value > 1000 ? '0,0.0a' : '0,0');
|
|
}
|