-unless @user.nil?
  .u-bg-beta.u-mb-5
    .container.u-py-2

      .Grid.Grid--flush.u-t-align-center
        .Grid-cell.1-of-3--handheld-and-up
          %p.u-m-0.u-t-uppercase
            All lists by
          %h2.u-m-0.u-fw-700
            =@user.name
        .Grid-cell.1-of-3--handheld-and-up
          %p.u-m-0.u-t-uppercase
            Lists
          %h2.u-m-0.u-fw-700
            =@lists.count
        .Grid-cell.1-of-3--handheld-and-up
          %p.u-m-0.u-t-uppercase
            Member since
          %h2.u-m-0.u-fw-700
            =distance_of_time_in_words_to_now(@user.created_at)

  .container
    =link_to user_edit_path(@user.name), class: 'Button Button--withIcon u-mb-5' do
      %i.material-icons mode_edit
      Edit your account settings

    -unless @lists.empty?
      .Grid
        -@lists.each do |list|
          .Grid-cell.1-of-2--handheld-and-up.1-of-3--desk
            =render list
    -else
      %p No lists created yet.

-unless @user.nil?
  .u-bg-beta.u-mb-3
    .container.u-py-2

      .Grid.Grid--flush.u-t-align-center
        .Grid-cell.1-of-3--handheld-and-up
          %p.u-m-0.u-t-uppercase
            All lists by
          %h2.u-m-0.u-fw-700
            =@user.name
        .Grid-cell.1-of-3--handheld-and-up
          %p.u-m-0.u-t-uppercase
            Lists
          %h2.u-m-0.u-fw-700
            =@lists.count
        .Grid-cell.1-of-3--handheld-and-up
          %p.u-m-0.u-t-uppercase
            Member since
          %h2.u-m-0.u-fw-700
            =distance_of_time_in_words_to_now(@user.created_at)

  .container
    -if current_user and current_user.id === @user.id
      .u-mb-3
        =link_to user_edit_path(@user.name), class: 'Button Button--withIcon' do
          %i.material-icons mode_edit
          Edit your account settings

    -unless @lists.empty?
      .Grid
        -@lists.each do |list|
          .Grid-cell.1-of-2--handheld-and-up.1-of-3--desk
            =render list
    -else
      %p No lists created yet.

Add user loggedin check, reduze margin.
Add user loggedin check, reduze margin.
