2014-11-02 09:16:56 -08:00
|
|
|
- if user_signed_in?
|
2014-11-30 09:10:53 -08:00
|
|
|
.container.j2-page
|
|
|
|
.col-md-3.col-sm-3.hidden-xs
|
|
|
|
.panel.panel-default
|
|
|
|
.panel-body
|
|
|
|
%p
|
|
|
|
Welcome,
|
|
|
|
= current_user.screen_name
|
2014-11-30 10:18:30 -08:00
|
|
|
- unless inbox_count.nil?
|
2014-11-30 10:13:19 -08:00
|
|
|
%p
|
|
|
|
%strong
|
|
|
|
You have
|
2014-11-30 10:30:06 -08:00
|
|
|
= pluralize(inbox_count, 'new question')
|
2014-11-30 10:25:53 -08:00
|
|
|
in your inbox!
|
2014-11-30 09:10:53 -08:00
|
|
|
.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
|
2014-12-07 06:11:09 -08:00
|
|
|
.row
|
|
|
|
.col-md-6.col-sm-6.col-xs-6
|
|
|
|
%h4.entry-text#asked-count= current_user.commented_count
|
|
|
|
%h6.entry-subtext Comments
|
|
|
|
.col-md-6.col-sm-6.col-xs-6
|
|
|
|
%h4.entry-text#answered-count= current_user.smiled_count
|
|
|
|
%h6.entry-subtext Smiles
|
2014-11-30 09:10:53 -08:00
|
|
|
.col-md-9.col-xs-12.col-sm-9
|
|
|
|
= render 'layouts/messages'
|
|
|
|
|
|
|
|
- current_user.timeline.each do |answer|
|
|
|
|
= render 'shared/answerbox', a: answer
|
2014-11-17 04:19:59 -08:00
|
|
|
= render "shared/links"
|
2014-11-02 09:16:56 -08:00
|
|
|
- else
|
|
|
|
.jumbotron
|
|
|
|
.container
|
|
|
|
= render 'layouts/messages'
|
|
|
|
%h1 Hi!
|
|
|
|
%p Ask questions, give answers and learn more about your friends.
|
|
|
|
%p
|
|
|
|
%a.btn.btn-primary.btn-lg{href: url_for(new_user_registration_path)}
|
|
|
|
Register now
|
|
|
|
%small
|
|
|
|
Already a member?
|
2014-11-17 04:19:59 -08:00
|
|
|
= link_to 'Sign in', new_user_session_path
|
|
|
|
= render "shared/links"
|