Move big statistics to a partial
This commit is contained in:
parent
1eff57d3ac
commit
3af4dd5aac
6 changed files with 41 additions and 98 deletions
13
app/views/shared/_big_statistic.haml
Normal file
13
app/views/shared/_big_statistic.haml
Normal 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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue