32 lines
1.2 KiB
Plaintext
32 lines
1.2 KiB
Plaintext
.container
|
|
.card.bg-primary.text-bg-primary.my-3
|
|
.card-body
|
|
%h1= APP_CONFIG["site_name"]
|
|
%p= t(".subtitle")
|
|
.row
|
|
.col-sm-8
|
|
.card.card--fullheight
|
|
.card-body
|
|
- if APP_CONFIG["about"].present?
|
|
= raw_markdown APP_CONFIG["about"]
|
|
- else
|
|
= t(".about_missing")
|
|
.col-sm-4
|
|
.card.card--fullheight
|
|
.card-body
|
|
%h2= t(".statistics.header")
|
|
%p= t(".statistics.body", app_name: APP_CONFIG["site_name"])
|
|
.entry
|
|
.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)
|
|
.entry
|
|
.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)
|
|
.entry
|
|
.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)
|
|
|
|
= render "shared/links"
|
|
|
|
- provide(:title, generate_title(t(".title")))
|