retrospring/app/views/user/show.html.haml

29 lines
944 B
Text
Raw Normal View History

2014-11-02 20:29:01 +01:00
.container.j2-page
2014-11-02 17:57:37 +01:00
.col-md-3.col-xs-12.col-sm-3
.panel.panel-default
.panel-body
.row
.col-md-12.col-xs-12.col-sm-9
%img.img-rounded.img-profile
- if @user.display_name.blank?
%h1= @user.screen_name
- else
%h1= @user.display_name
%h3.text-muted= @user.screen_name
2014-11-28 22:41:29 +01:00
- if @user.admin?
%span.label.label-danger Admin
2014-11-29 22:56:38 +01:00
%h4.entry-text= @user.follower_count
%h6.entry-subtext Followers
%h4.entry-text= @user.friend_count
%h6.entry-subtext Followings
%h4.entry-text= @user.asked_count
%h6.entry-subtext Questions
%h4.entry-text= @user.answered_count
%h6.entry-subtext Answers
2014-11-24 17:52:58 +01:00
.hidden-xs= render 'shared/links'
2014-11-02 17:57:37 +01:00
.col-md-9.col-xs-12.col-sm-9
2014-11-12 20:40:24 +01:00
= render 'shared/questionbox'
- @answers.each do |a|
2014-11-27 11:50:29 +01:00
= render 'shared/answerbox', a: a
2014-11-24 17:52:58 +01:00
.visible-xs= render 'shared/links'