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

24 lines
823 B
Text
Raw Normal View History

2014-12-13 00:55:00 +01:00
.profile--header
2014-11-02 20:29:01 +01:00
.container.j2-page
.col-md-3.col-xs-12.col-sm-4.j2-col-reset
2014-12-08 17:03:06 +01:00
= render 'user/profile_info'
2014-11-24 17:52:58 +01:00
.hidden-xs= render 'shared/links'
.col-md-9.col-xs-12.col-sm-8.j2-col-reset
2014-11-12 20:40:24 +01:00
= render 'shared/questionbox'
2015-04-23 03:33:21 +02:00
= unless @user.banned?
#answers
- @answers.each do |a|
= render 'shared/answerbox', a: a
2014-12-08 15:23:04 +01:00
2015-04-23 03:33:21 +02:00
#pagination= will_paginate @answers, renderer: BootstrapPagination::Rails, page_links: false
2014-12-08 15:23:04 +01:00
2015-04-23 03:33:21 +02:00
- if @answers.next_page
%button#load-more-btn.btn.btn-default{type: :button, data: { current_page: @answers.current_page }}
Load more
2014-11-24 17:52:58 +01:00
.visible-xs= render 'shared/links'
2015-01-14 07:07:40 +01:00
- if user_signed_in?
= render 'user/modal_group_memberships'
2015-02-03 17:13:50 +01:00
- if current_user.mod? and @user != current_user
= render 'user/modal_privileges'
= render 'user/modal_ban'