2014-11-02 09:16:56 -08:00
|
|
|
- if user_signed_in?
|
2014-11-30 09:10:53 -08:00
|
|
|
.container.j2-page
|
2014-12-12 08:43:32 -08:00
|
|
|
.col-md-3.col-sm-3
|
|
|
|
.panel.panel-default.hidden-xs
|
2014-11-30 09:10:53 -08:00
|
|
|
.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
|
2014-12-08 08:14:02 -08:00
|
|
|
%a{href: show_user_followers_path(current_user.screen_name)}
|
|
|
|
.col-md-6.col-sm-6.col-xs-6
|
|
|
|
%h4.entry-text#follower-count= current_user.follower_count
|
2014-12-09 13:07:45 -08:00
|
|
|
%h6.entry-subtext Followers
|
2014-12-08 10:51:34 -08:00
|
|
|
%a{href: show_user_friends_path(current_user.screen_name)}
|
2014-12-08 08:14:02 -08:00
|
|
|
.col-md-6.col-sm-6.col-xs-6
|
|
|
|
%h4.entry-text#friend-count= current_user.friend_count
|
|
|
|
%h6.entry-subtext Following
|
2014-11-30 09:10:53 -08:00
|
|
|
.row
|
|
|
|
.col-md-6.col-sm-6.col-xs-6
|
|
|
|
%h4.entry-text#asked-count= current_user.asked_count
|
2014-12-09 13:07:45 -08:00
|
|
|
%h6.entry-subtext Questions
|
2014-11-30 09:10:53 -08:00
|
|
|
.col-md-6.col-sm-6.col-xs-6
|
|
|
|
%h4.entry-text#answered-count= current_user.answered_count
|
2014-12-09 13:07:45 -08:00
|
|
|
%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
|
2014-12-09 13:23:51 -08:00
|
|
|
%h6.entry-subtext Comments
|
2014-12-07 06:11:09 -08:00
|
|
|
.col-md-6.col-sm-6.col-xs-6
|
|
|
|
%h4.entry-text#answered-count= current_user.smiled_count
|
2014-12-09 13:07:45 -08:00
|
|
|
%h6.entry-subtext Smiles
|
2014-12-12 08:43:32 -08:00
|
|
|
.panel.panel-default
|
|
|
|
.panel-body
|
|
|
|
%ul.nav.nav-pills.nav-stacked
|
|
|
|
= nav_entry "Timeline", root_path
|
|
|
|
= nav_entry "Public", public_timeline_path
|
2014-12-12 08:48:19 -08:00
|
|
|
.hidden-xs= render 'shared/links'
|
2014-11-30 09:10:53 -08:00
|
|
|
.col-md-9.col-xs-12.col-sm-9
|
|
|
|
= render 'layouts/messages'
|
|
|
|
|
2014-12-08 05:14:13 -08:00
|
|
|
#timeline
|
|
|
|
- @timeline.each do |answer|
|
|
|
|
= render 'shared/answerbox', a: answer
|
|
|
|
|
|
|
|
#pagination= will_paginate @timeline, renderer: BootstrapPagination::Rails, page_links: false
|
|
|
|
|
|
|
|
- if @timeline.next_page
|
2014-12-08 07:01:27 -08:00
|
|
|
%button#load-more-btn.btn.btn-default{type: :button, data: { current_page: @timeline.current_page }}
|
2014-12-08 05:14:13 -08:00
|
|
|
Load more
|
2014-12-08 06:17:26 -08:00
|
|
|
.visible-xs= render 'shared/links'
|
2014-11-02 09:16:56 -08:00
|
|
|
- else
|
2014-12-13 09:03:27 -08:00
|
|
|
= render 'static/front'
|