Retrospring/app/views/discover/index.html.haml

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
2.2 KiB
Plaintext
Raw Normal View History

- provide(:title, generate_title(t(".title")))
2020-05-10 04:37:08 -07:00
.container
2023-01-04 06:08:06 -08:00
.card.bg-primary.text-bg-primary.my-3
.card-body
%h1= t(".heading")
%p= t(".subheading", app_title: APP_CONFIG["site_name"])
2020-05-10 04:37:08 -07:00
.row
.col-md-7.col-sm-6
%h2= t(".content.heading")
%p= t(".content.description")
2020-05-10 13:27:39 -07:00
%div{ role: :tabpanel }
%ul.nav.nav-tabs{ role: :tablist }
2022-07-29 11:16:03 -07:00
%li.nav-item{ role: "presentation" }
%a.nav-link.active{ href: "#answers", role: :tab, aria: { controls: "answers" }, data: { bs_toggle: :tab } }= t(".content.tab.answers")
2022-07-29 11:16:03 -07:00
%li.nav-item{ role: "presentation" }
%a.nav-link{ href: "#questions", role: :tab, aria: { controls: "questions" }, data: { bs_toggle: :tab } }= t(".content.tab.questions")
2022-07-29 11:16:03 -07:00
%li.nav-item{ role: "presentation" }
%a.nav-link{ href: "#comments", role: :tab, aria: { controls: "comments" }, data: { bs_toggle: :tab } }= t(".content.tab.comments")
2020-05-10 04:37:08 -07:00
.tab-content.mt-3
= render "discover/tab/answers", answers: @popular_answers, subscribed_answer_ids: @subscribed_answer_ids
2022-07-29 11:16:03 -07:00
= render "discover/tab/questions", questions: @popular_questions
= render "discover/tab/discussed", comments: @most_discussed, subscribed_answer_ids: @subscribed_answer_ids
2020-05-10 04:37:08 -07:00
.col-md-5.col-sm-6
%h2= t(".people.heading")
%p= t(".people.description")
2020-05-10 13:27:39 -07:00
%div{ role: :tabpanel }
%ul.nav.nav-tabs{ role: :tablist }
2022-07-29 11:16:03 -07:00
%li.nav-item{ role: "presentation" }
%a.nav-link.active{ href: "#new", role: :tab, aria: { controls: "new" }, data: { bs_toggle: :tab } }= t(".people.tab.new")
2022-07-29 11:16:03 -07:00
%li.nav-item{ role: "presentation" }
%a.nav-link{ href: "#asked", role: :tab, aria: { controls: "asked" }, data: { bs_toggle: :tab } }= t(".people.tab.questions")
2022-07-29 11:16:03 -07:00
%li.nav-item{ role: "presentation" }
%a.nav-link{ href: "#answered", role: :tab, aria: { controls: "answered" }, data: { bs_toggle: :tab } }= t(".people.tab.answers")
2020-05-10 04:37:08 -07:00
.tab-content.mt-3
2022-07-29 11:16:03 -07:00
= render "discover/tab/new", new: @new_users
= render "discover/tab/asked", asked: @users_with_most_questions
= render "discover/tab/most", answered: @users_with_most_answers
= render "shared/links"