2013-11-19 21:20:18 +00:00
|
|
|
extends ../layout
|
|
|
|
|
|
|
|
block content
|
2013-11-20 03:03:12 +00:00
|
|
|
.page-header
|
|
|
|
h1
|
|
|
|
i.fa.fa-foursquare
|
|
|
|
| Foursquare API
|
2013-11-20 00:40:24 +00:00
|
|
|
|
2013-11-25 16:57:06 +00:00
|
|
|
if !(user.tokens && user.tokens.foursquare)
|
2013-11-30 04:47:26 +00:00
|
|
|
.alert.alert-warning No Token Found
|
2013-11-30 04:40:21 +00:00
|
|
|
a.btn.btn-large.btn-primary(href='/auth/foursquare')
|
|
|
|
i.fa.fa-qrcode.fa-spin
|
|
|
|
| Get Foursquare Token
|
2013-11-25 16:57:06 +00:00
|
|
|
else
|
|
|
|
ul.nav.nav-pills(style='margin-bottom: 15px;')
|
|
|
|
li.active
|
|
|
|
a(href='#venues', data-toggle='tab') Venues
|
|
|
|
li
|
|
|
|
a(href='#users', data-toggle='tab') Users
|
|
|
|
li
|
|
|
|
a(href='#checkins', data-toggle='tab') Checkins
|
2013-11-30 05:03:31 +00:00
|
|
|
|
2013-11-25 16:57:06 +00:00
|
|
|
div.tab-content
|
|
|
|
#venues.tab-pane.fade.active.in
|
2013-11-30 05:03:31 +00:00
|
|
|
.lead Trending Venues
|
|
|
|
table.table.table-bordered.table-hover
|
|
|
|
thead
|
|
|
|
tr
|
|
|
|
th Name
|
|
|
|
th Location
|
|
|
|
th Checkins
|
|
|
|
th Here Now
|
|
|
|
tbody
|
|
|
|
for venue in venues
|
|
|
|
tr
|
|
|
|
td= venue.name
|
|
|
|
td #{venue.location.address}, #{venue.location.city}, #{venue.location.state}
|
|
|
|
td= venue.stats.checkinsCount
|
|
|
|
td= venue.hereNow.count
|
|
|
|
|
2013-11-25 16:57:06 +00:00
|
|
|
#users.tab-pane.fade
|
|
|
|
p TODO: Users
|
2013-11-20 00:39:10 +00:00
|
|
|
|
2013-11-25 16:57:06 +00:00
|
|
|
#checkins.tab-pane.fade
|
|
|
|
p TODO: Checkins
|