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

40 lines
2.2 KiB
Plaintext
Raw Normal View History

2015-05-13 15:48:26 -07:00
- provide(:title, generate_title("Discover"))
2020-04-26 15:59:53 -07:00
.jumbotron.jumbotron--particles
#particles.jumbotron__particles
.jumbotron__content
%h1= t 'views.discover.title'
%p= t('views.discover.subtitle', app_title: APP_CONFIG['site_name'])
.container
2015-05-13 13:29:37 -07:00
.row
.col-md-7.col-sm-6
%h2= t 'views.discover.content.title'
%p= t 'views.discover.content.desc'
2015-05-13 13:29:37 -07:00
%div{role: "tabpanel"}
%ul.nav.nav-tabs{role: "tablist"}
2020-04-25 10:02:39 -07:00
%li.nav-item{role: "presentation"}
%a.nav-link.active{href: "#answers", role: "tab", aria: {controls: "answers"}, data: {toggle: "tab"}}= t 'views.discover.content.tab.answers'
%li.nav-item{role: "presentation"}
%a.nav-link{href: "#questions", role: "tab", aria: {controls: "questions"}, data: {toggle: "tab"}}= t 'views.discover.content.tab.questions'
%li.nav-item{role: "presentation"}
%a.nav-link{href: "#comments", role: "tab", aria: {controls: "comments"}, data: {toggle: "tab"}}= t 'views.discover.content.tab.comments'
2020-04-26 16:55:31 -07:00
.tab-content.mt-3
2015-05-13 14:55:10 -07:00
= render 'discover/tab_answers', answers: @popular_answers
= render 'discover/tab_questions', questions: @popular_questions
= render 'discover/tab_discussed', comments: @most_discussed
.col-md-5.col-sm-6
%h2= t 'views.discover.people.title'
%p= t 'views.discover.people.desc'
2015-05-13 13:29:37 -07:00
%div{role: "tabpanel"}
%ul.nav.nav-tabs{role: "tablist"}
2020-04-25 10:02:39 -07:00
%li.nav-item{role: "presentation"}
%a.nav-link.active{href: "#new", role: "tab", aria: {controls: "new"}, data: {toggle: "tab"}}= t 'views.discover.people.tab.new'
%li.nav-item{role: "presentation"}
%a.nav-link{href: "#asked", role: "tab", aria: {controls: "asked"}, data: {toggle: "tab"}}= t 'views.discover.people.tab.questions'
%li.nav-item{role: "presentation"}
%a.nav-link{href: "#answered", role: "tab", aria: {controls: "answered"}, data: {toggle: "tab"}}= t 'views.discover.people.tab.answers'
2020-04-26 16:55:31 -07:00
.tab-content.mt-3
2015-05-13 14:55:10 -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
2015-05-13 15:45:01 -07:00
= render 'shared/links'