From f4b5289d3afe84b67402e77d76eec1e77ef477f2 Mon Sep 17 00:00:00 2001 From: Yuki Date: Thu, 23 Apr 2015 07:03:21 +0530 Subject: [PATCH] Actually fixes Retrospring/bugs#25 --- app/views/user/show.html.haml | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/app/views/user/show.html.haml b/app/views/user/show.html.haml index 252fde35..568706b9 100644 --- a/app/views/user/show.html.haml +++ b/app/views/user/show.html.haml @@ -5,15 +5,16 @@ .hidden-xs= render 'shared/links' .col-md-9.col-xs-12.col-sm-8.j2-col-reset = render 'shared/questionbox' - #answers - - @answers.each do |a| - = render 'shared/answerbox', a: a + = unless @user.banned? + #answers + - @answers.each do |a| + = render 'shared/answerbox', a: a - #pagination= will_paginate @answers, renderer: BootstrapPagination::Rails, page_links: false + #pagination= will_paginate @answers, renderer: BootstrapPagination::Rails, page_links: false - - if @answers.next_page - %button#load-more-btn.btn.btn-default{type: :button, data: { current_page: @answers.current_page }} - Load more + - if @answers.next_page + %button#load-more-btn.btn.btn-default{type: :button, data: { current_page: @answers.current_page }} + Load more .visible-xs= render 'shared/links' - if user_signed_in? = render 'user/modal_group_memberships'