2022-07-29 11:08:20 -07:00
|
|
|
- provide(:title, generate_title(t(".title")))
|
2020-05-10 04:37:08 -07:00
|
|
|
|
2022-04-11 13:06:10 -07:00
|
|
|
.jumbotron
|
2020-05-10 04:37:08 -07:00
|
|
|
.jumbotron__content
|
2022-07-29 11:08:20 -07:00
|
|
|
%h1= t(".heading")
|
|
|
|
%p= t(".subheading", app_title: APP_CONFIG['site_name'])
|
2020-05-10 04:37:08 -07:00
|
|
|
.container
|
|
|
|
.row
|
|
|
|
.col-md-7.col-sm-6
|
2022-07-29 11:08:20 -07:00
|
|
|
%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 }
|
2020-05-10 04:37:08 -07:00
|
|
|
%li.nav-item{ role: 'presentation' }
|
2022-07-29 11:08:20 -07:00
|
|
|
%a.nav-link.active{ href: '#answers', role: :tab, aria: { controls: 'answers' }, data: { toggle: :tab } }= t(".content.tab.answers")
|
2020-05-10 04:37:08 -07:00
|
|
|
%li.nav-item{ role: 'presentation' }
|
2022-07-29 11:08:20 -07:00
|
|
|
%a.nav-link{ href: '#questions', role: :tab, aria: { controls: 'questions' }, data: { toggle: :tab } }= t(".content.tab.questions")
|
2020-05-10 04:37:08 -07:00
|
|
|
%li.nav-item{ role: 'presentation' }
|
2022-07-29 11:08:20 -07:00
|
|
|
%a.nav-link{ href: '#comments', role: :tab, aria: { controls: 'comments' }, data: { toggle: :tab } }= t(".content.tab.comments")
|
2020-05-10 04:37:08 -07:00
|
|
|
.tab-content.mt-3
|
2022-07-29 11:09:33 -07:00
|
|
|
= render 'discover/tab/answers', answers: @popular_answers
|
|
|
|
= render 'discover/tab/questions', questions: @popular_questions
|
|
|
|
= render 'discover/tab/discussed', comments: @most_discussed
|
2020-05-10 04:37:08 -07:00
|
|
|
.col-md-5.col-sm-6
|
2022-07-29 11:08:20 -07:00
|
|
|
%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 }
|
2020-05-10 04:37:08 -07:00
|
|
|
%li.nav-item{ role: 'presentation' }
|
2022-07-29 11:08:20 -07:00
|
|
|
%a.nav-link.active{ href: '#new', role: :tab, aria: { controls: 'new' }, data: { toggle: :tab } }= t(".people.tab.new")
|
2020-05-10 04:37:08 -07:00
|
|
|
%li.nav-item{ role: 'presentation' }
|
2022-07-29 11:08:20 -07:00
|
|
|
%a.nav-link{ href: '#asked', role: :tab, aria: { controls: 'asked' }, data: { toggle: :tab } }= t(".people.tab.questions")
|
2020-05-10 04:37:08 -07:00
|
|
|
%li.nav-item{ role: 'presentation' }
|
2022-07-29 11:08:20 -07:00
|
|
|
%a.nav-link{ href: '#answered', role: :tab, aria: { controls: 'answered' }, data: { toggle: :tab } }= t(".people.tab.answers")
|
2020-05-10 04:37:08 -07:00
|
|
|
.tab-content.mt-3
|
2022-07-29 11:09:33 -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
|
2020-05-10 04:37:08 -07:00
|
|
|
= render 'shared/links'
|