extends ../layout

block content
  h1 Foursquare API
  h2= results
  a.btn.btn-large.btn-primary(href='/auth/foursquare') Get Foursquare Token

  ul.nav.nav-tabs
    li.active
      a(href='#trending', data-toggle='tab') Trending Venues
    li
      a(href='#nearby', data-toggle='tab') Nearby
  .tab-content
    #trending.tab-pane.fade.active.in
      h4 Locations
      ul.list-group
        for venue in venues
          li.list-group-item
            span.badge #{venue.stats.checkinsCount}
            | #{venue.name}
    #nearby.tab-pane.fade
      p TODO: Nearby
extends ../layout

block content
  h1 Foursquare API

  if !user.tokens.foursquare
    a.btn.btn-large.btn-primary(href='/auth/foursquare') Get Foursquare Token

  ul.nav.nav-tabs
    li.active
      a(href='#trending', data-toggle='tab') Trending Venues
    li
      a(href='#nearby', data-toggle='tab') Nearby
  .tab-content
    #trending.tab-pane.fade.active.in
      h4 Locations
      ul.list-group
        for venue in venues
          li.list-group-item
            span.badge #{venue.stats.checkinsCount}
            | #{venue.name}
    #nearby.tab-pane.fade
      p TODO: Nearby
Hide Get Foursquare Token if it's already saved in DB
Hide Get Foursquare Token if it's already saved in DB
