osem-fcy/app/views/application/_big_statistic.haml
James Mason 516e53d9df Use chartkick globally
* Clean up legacy charting imports
* Update existing donut and line charts
* Create helpers for parsing out existing chart data
* Move chart partials to a more common path
2018-12-30 16:57:22 -08:00

13 lines
299 B
Text

- reverse ||= false
- variant = variant_from_delta(delta, reverse: reverse)
.dashbox.text-center
%span.fa
= fa_icon(icon)
= value
%p.text-nowrap
%small
= subtitle.pluralize(value)
%span.label{ class: "label-#{variant}" }
= delta
since you last logged in