From b1eb0f72d0f7364bf81b21f2c261f795104e71cc Mon Sep 17 00:00:00 2001 From: nilsding Date: Sun, 30 Nov 2014 18:10:53 +0100 Subject: [PATCH] a --- app/views/static/index.html.haml | 32 ++++++++++++++++++++++++++------ 1 file changed, 26 insertions(+), 6 deletions(-) diff --git a/app/views/static/index.html.haml b/app/views/static/index.html.haml index 64516ae7..21836c1f 100644 --- a/app/views/static/index.html.haml +++ b/app/views/static/index.html.haml @@ -1,10 +1,30 @@ - if user_signed_in? - .container - %h1 Timeline - = render 'layouts/messages' - - - current_user.timeline.each do |answer| - = render 'shared/answerbox', a: answer + .container.j2-page + .col-md-3.col-sm-3.hidden-xs + .panel.panel-default + .panel-body + %p + Welcome, + = current_user.screen_name + .row + .col-md-6.col-sm-6.col-xs-6 + %h4.entry-text#follower-count= current_user.follower_count + %h6.entry-subtext Follower + .col-md-6.col-sm-6.col-xs-6 + %h4.entry-text#friend-count= current_user.friend_count + %h6.entry-subtext Following + .row + .col-md-6.col-sm-6.col-xs-6 + %h4.entry-text#asked-count= current_user.asked_count + %h6.entry-subtext Questions + .col-md-6.col-sm-6.col-xs-6 + %h4.entry-text#answered-count= current_user.answered_count + %h6.entry-subtext Answers + .col-md-9.col-xs-12.col-sm-9 + = render 'layouts/messages' + + - current_user.timeline.each do |answer| + = render 'shared/answerbox', a: answer = render "shared/links" - else .jumbotron