From ce60dd2de358d704b5b850f63e223d5c37ac23b0 Mon Sep 17 00:00:00 2001 From: "Jesse C. Fisher" Date: Fri, 24 Nov 2023 04:11:43 +0000 Subject: [PATCH] Contain own posts --- app/views/users/home.html.haml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/app/views/users/home.html.haml b/app/views/users/home.html.haml index 42642c9b..2411ac9b 100644 --- a/app/views/users/home.html.haml +++ b/app/views/users/home.html.haml @@ -13,9 +13,9 @@ = render 'shared/feed' - if @user.microposts.any? - %section.microposts - %h2 My Posts #{@user.microposts.count} - %ol.microposts - = render @microposts - = will_paginate @microposts - + .contain + %section.microposts + %h2 My Posts #{@user.microposts.count} + %ol.microposts + = render @microposts + = will_paginate @microposts