Move big statistics to a partial

This commit is contained in:
James Mason 2018-09-26 12:23:59 -07:00
parent 780eb5c51d
commit 68b792da17
No known key found for this signature in database
GPG key ID: 1B3951886C449023
6 changed files with 41 additions and 98 deletions

View file

@ -0,0 +1,13 @@
- 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