Retrospring/app/views/about/about.html.haml

32 lines
1.2 KiB
Plaintext
Raw Normal View History

.container
2023-01-04 06:08:06 -08:00
.card.bg-primary.text-bg-primary.my-3
.card-body
%h1= APP_CONFIG["site_name"]
%p= t(".subtitle")
2022-04-17 08:34:09 -07:00
.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
2023-02-17 06:58:46 -08:00
.entry__value{ title: number_to_human(@questions) }= number_to_human @questions, units: :short, format: "%n%u"
2022-04-17 08:34:09 -07:00
%h4.entry__description= Question.model_name.human(count: @questions)
.entry
2023-02-17 06:58:46 -08:00
.entry__value{ title: number_to_human(@answers) }= number_to_human @answers, units: :short, format: "%n%u"
2022-04-17 08:34:09 -07:00
%h4.entry__description= Answer.model_name.human(count: @answers)
.entry
2023-02-17 06:58:46 -08:00
.entry__value{ title: number_to_human(@users) }= number_to_human @users, units: :short, format: "%n%u"
2022-04-17 08:34:09 -07:00
%h4.entry__description= User.model_name.human(count: @users)
2022-04-17 08:34:09 -07:00
= render "shared/links"
- provide(:title, generate_title(t(".title")))