update timeline design
This commit is contained in:
parent
9cb21d2458
commit
cff278793e
|
@ -1,14 +1,18 @@
|
||||||
.panel.panel-default.hidden-xs
|
.panel.panel-default.hidden-xs
|
||||||
|
%img.profile--avatar{src: current_user.profile_picture.url(:large)}
|
||||||
|
- unless inbox_count.nil?
|
||||||
|
.profile--panel-badge.panel-badge-info
|
||||||
|
%i.fa.fa-envelope
|
||||||
|
= pluralize(inbox_count, 'new question')
|
||||||
.panel-body
|
.panel-body
|
||||||
%p
|
- if current_user.display_name.blank?
|
||||||
Welcome,
|
.profile--displayname
|
||||||
= current_user.screen_name
|
= current_user.screen_name
|
||||||
- unless inbox_count.nil?
|
- else
|
||||||
%p
|
.profile--displayname
|
||||||
%strong
|
= current_user.display_name
|
||||||
You have
|
.profile--username
|
||||||
= pluralize(inbox_count, 'new question')
|
= current_user.screen_name
|
||||||
in your inbox!
|
|
||||||
.row
|
.row
|
||||||
%a{href: show_user_followers_path(current_user.screen_name)}
|
%a{href: show_user_followers_path(current_user.screen_name)}
|
||||||
.col-md-6.col-sm-6.col-xs-6
|
.col-md-6.col-sm-6.col-xs-6
|
||||||
|
@ -18,20 +22,6 @@
|
||||||
.col-md-6.col-sm-6.col-xs-6
|
.col-md-6.col-sm-6.col-xs-6
|
||||||
%h4.entry-text#friend-count= current_user.friend_count
|
%h4.entry-text#friend-count= current_user.friend_count
|
||||||
%h6.entry-subtext Following
|
%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
|
|
||||||
.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
|
|
||||||
.panel.panel-default.hidden-xs
|
.panel.panel-default.hidden-xs
|
||||||
.panel-body
|
.panel-body
|
||||||
%ul.nav.nav-pills.nav-stacked
|
%ul.nav.nav-pills.nav-stacked
|
||||||
|
|
Loading…
Reference in New Issue