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

41 lines
1.6 KiB
Plaintext
Raw Normal View History

2015-05-13 15:48:26 -07:00
- provide(:title, generate_title("Discover"))
.jumbotron.j2-jumbo.text-center.particle-jumbotron
#particles
.particle-content
%h1 Discover
%p
2015-05-13 14:55:10 -07:00
The perfect place to find interesting content from the last week on
= succeed '!' do
= APP_CONFIG['site_name']
.container
2015-05-13 13:29:37 -07:00
.row
.col-md-8.col-sm-6
%h2 Popular Content
%p Most answered questions and answers with most smiles!
%div{role: "tabpanel"}
%ul.nav.nav-tabs{role: "tablist"}
%li.active{role: "presentation"}
%a{href: "#answers", role: "tab", aria: {controls: "answers"}, data: {toggle: "tab"}}
Answers
%li{role: "presentation"}
%a{href: "#questions", role: "tab", aria: {controls: "questions"}, data: {toggle: "tab"}}
Questions
2015-05-13 15:45:01 -07:00
.tab-content.discover
2015-05-13 14:55:10 -07:00
= render 'discover/tab_answers', answers: @popular_answers
= render 'discover/tab_questions', questions: @popular_questions
2015-05-13 13:29:37 -07:00
.col-md-4.col-sm-6
%h2 Users
%p Users that ask the most questions and new users!
%div{role: "tabpanel"}
%ul.nav.nav-tabs{role: "tablist"}
%li.active{role: "presentation"}
%a{href: "#new", role: "tab", aria: {controls: "new"}, data: {toggle: "tab"}}
New Users
2015-05-13 14:55:10 -07:00
%li{role: "presentation"}
%a{href: "#asked", role: "tab", aria: {controls: "asked"}, data: {toggle: "tab"}}
Most Asked Questions
2015-05-13 15:45:01 -07:00
.tab-content.discover
2015-05-13 14:55:10 -07:00
= render 'discover/tab_new', new: @new_users
= render 'discover/tab_asked', asked: @users_with_most_questions
2015-05-13 15:45:01 -07:00
= render 'shared/links'