Humanise numbers on about page
This commit is contained in:
parent
1399736053
commit
7635d3a491
|
@ -17,13 +17,13 @@
|
||||||
%h2= t(".statistics.header")
|
%h2= t(".statistics.header")
|
||||||
%p= t(".statistics.body", app_name: APP_CONFIG["site_name"])
|
%p= t(".statistics.body", app_name: APP_CONFIG["site_name"])
|
||||||
.entry
|
.entry
|
||||||
.entry__value= @questions
|
.entry__value{ title: number_to_human(@questions) }= number_to_human @questions, units: :short, format: "%n%u"
|
||||||
%h4.entry__description= Question.model_name.human(count: @questions)
|
%h4.entry__description= Question.model_name.human(count: @questions)
|
||||||
.entry
|
.entry
|
||||||
.entry__value= @answers
|
.entry__value{ title: number_to_human(@answers) }= number_to_human @answers, units: :short, format: "%n%u"
|
||||||
%h4.entry__description= Answer.model_name.human(count: @answers)
|
%h4.entry__description= Answer.model_name.human(count: @answers)
|
||||||
.entry
|
.entry
|
||||||
.entry__value= @users
|
.entry__value{ title: number_to_human(@users) }= number_to_human @users, units: :short, format: "%n%u"
|
||||||
%h4.entry__description= User.model_name.human(count: @users)
|
%h4.entry__description= User.model_name.human(count: @users)
|
||||||
|
|
||||||
= render "shared/links"
|
= render "shared/links"
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
en:
|
||||||
|
short:
|
||||||
|
unit: ""
|
||||||
|
thousand: "K"
|
||||||
|
million: "M"
|
||||||
|
billion: "B"
|
||||||
|
trillion: "T"
|
Loading…
Reference in New Issue