.screen.no-login-required layout="screen" layout-id="home"
  / Layout is different if jam_tracks tile available:
  -jamtracks=Rails.configuration.jam_tracks_available || (current_user && current_user.admin)
  -if (jamtracks) 
    -small_tile_size="2.4"
    -column_positions=["0.0,1", "2.4,1", "4.8,1", "7.2,1", "9.6,1"]
  -else
    -small_tile_size="3.0"
    -column_positions=["0,1", "3,1", "0,1", "6,1", "9,1"]  
  / Grid is the count of the smallest spaces, then
  / individual spells span those spaces
  -if @nativeClient
    .grid layout-grid="2x12"
      .homecard.createsession layout-grid-columns="4" layout-grid-position="0,0" layout-grid-rows="1" layout-link="createSession" type="createSession" class="#{logged_in_not_logged_in_class}"
        h2 create session
        .homebox-info
          /! 4 friends online, 2 currently in sessions
      .homecard.findsession layout-grid-columns="4" layout-grid-position="4,0" layout-grid-rows="1" layout-link="findSession" type="findSession" class="#{logged_in_not_logged_in_class}"
        h2 find session
        .homebox-info
          /! 1 session invitation, 19 public sessions active
      .homecard.feed layout-grid-columns="4" layout-grid-position="8,0" layout-grid-rows="1" layout-link="feed" class="#{logged_in_not_logged_in_class}"
        h2 feed
        .homebox-info
          /! 4 friends online, 2 currently in sessions
      .homecard.musicians layout-grid-columns=small_tile_size layout-grid-position=column_positions[0] layout-grid-rows="1" layout-link="musicians" class="#{logged_in_not_logged_in_class}"
        h2 musicians
        .homebox-info
          /! 5 followers, 3 following
      .homecard.bands layout-grid-columns=small_tile_size layout-grid-position=column_positions[1] layout-grid-rows="1" layout-link="bands" class="#{logged_in_not_logged_in_class}"
        h2 bands
        .homebox-info
          /! 1 session invitation, 19 public sessions active
      -if jamtracks
        .homecard.jamtrack layout-grid-columns=small_tile_size layout-grid-position=column_positions[2] layout-grid-rows="1" layout-link="jamtrackLanding"
          h2 jamtracks
          .homebox-info
            /! 5 followers, 3 following
      .homecard.profile layout-grid-columns=small_tile_size layout-grid-position=column_positions[3] layout-grid-rows="1" class="#{logged_in_not_logged_in_class}"
        h2 profile
        .homebox-info
          /! 5 followers, 3 following
      .homecard.account layout-grid-columns=small_tile_size layout-grid-position=column_positions[4] layout-grid-rows="1" layout-link="account" class="#{logged_in_not_logged_in_class}"
        h2 account
        .homebox-info
          /! free service level
  -else
    .grid layout-grid="2x12"
      .homecard.createsession layout-grid-columns="4" layout-grid-position="0,0" layout-grid-rows="1" layout-link="createSession" type="createSession" class="#{logged_in_not_logged_in_class}"
        h2 create session
        .homebox-info
          /! 4 friends online, 2 currently in sessions
      .homecard.findsession layout-grid-columns="4" layout-grid-position="4,0" layout-grid-rows="1" layout-link="findSession" type="findSession" class="#{logged_in_not_logged_in_class}"
        h2 find session
        .homebox-info
          /! 1 session invitation, 19 public sessions active
      .homecard.feed layout-grid-columns="4" layout-grid-position="8,0" layout-grid-rows="1" layout-link="feed" class="#{logged_in_not_logged_in_class}"
        h2 feed
        .homebox-info
          /! 4 friends online, 2 currently in sessions
      .homecard.musicians layout-grid-columns=small_tile_size layout-grid-position=column_positions[0] layout-grid-rows="1" layout-link="musicians" class="#{logged_in_not_logged_in_class}"
        h2 musicians
        .homebox-info
          /! 5 followers, 3 following
      .homecard.bands layout-grid-columns=small_tile_size layout-grid-position=column_positions[1] layout-grid-rows="1" layout-link="bands" class="#{logged_in_not_logged_in_class}"
        h2 bands
        .homebox-info
      -if jamtracks
        /! 1 session invitation, 19 public sessions active
        .homecard.jamtrack layout-grid-columns=small_tile_size layout-grid-position=column_positions[2] layout-grid-rows="1" layout-link="jamtrackLanding" 
          h2 jamtracks
          .homebox-info
            /! 5 followers, 3 following
      .homecard.profile layout-grid-columns=small_tile_size layout-grid-position=column_positions[3] layout-grid-rows="1" class="#{logged_in_not_logged_in_class}"
        h2 profile
        .homebox-info
          /! 5 followers, 3 following
      .homecard.account layout-grid-columns=small_tile_size layout-grid-position=column_positions[4] layout-grid-rows="1" layout-link="account" class="#{logged_in_not_logged_in_class}"
        h2 account
        .homebox-info
          /! free service level
    