From 5c13dda5854273f54fdaf6c3c55170269ce8edf9 Mon Sep 17 00:00:00 2001 From: pixeldesu Date: Wed, 13 May 2015 22:29:37 +0200 Subject: [PATCH] add tab navigation --- app/views/discover/index.html.haml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/app/views/discover/index.html.haml b/app/views/discover/index.html.haml index 3c563e34..5fbab8d5 100644 --- a/app/views/discover/index.html.haml +++ b/app/views/discover/index.html.haml @@ -8,4 +8,27 @@ = succeed '!' do = APP_CONFIG['site_name'] .container + .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 + .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: "#asked", role: "tab", aria: {controls: "asked"}, data: {toggle: "tab"}} + Most Asked Questions + %li{role: "presentation"} + %a{href: "#new", role: "tab", aria: {controls: "new"}, data: {toggle: "tab"}} + New Users %p TODO: Add content