- if current_user.signed_in?
  %section.micropost_form
    = render 'shared/micropost_form'

.contain
  %h1 #{@user.display_name if @user.display_name}
  %section.stats
    = render 'shared/stats'

- if @feed_items.any?
  .contain
    %h2 Post feed
    = render 'shared/feed'

- if @user.microposts.any?
  .contain
    %section.microposts
      %h2 My Posts #{@user.microposts.count}
      %ol.microposts
        = render @microposts
      = will_paginate @microposts
