2013-11-19 21:20:18 +00:00
|
|
|
extends ../layout
|
|
|
|
|
|
|
|
block content
|
2013-11-30 07:07:29 +00:00
|
|
|
if !user.tokens.foursquare
|
2013-12-04 20:25:57 +00:00
|
|
|
.panel.panel-default
|
|
|
|
.panel-heading
|
|
|
|
i.fa.fa-shield
|
|
|
|
| Authorization Required
|
|
|
|
.panel-body
|
|
|
|
a(href='/auth/foursquare')
|
|
|
|
.label.label-primary.label-block
|
|
|
|
h2
|
|
|
|
i.fa.fa-qrcode
|
|
|
|
| Get Foursquare Token
|
|
|
|
.panel-footer
|
|
|
|
div= message
|
2013-11-25 16:57:06 +00:00
|
|
|
else
|
2013-12-06 01:51:05 +00:00
|
|
|
.page-header
|
|
|
|
h1
|
|
|
|
i.fa.fa-foursquare
|
|
|
|
| Foursquare APIs
|
2013-12-05 17:58:13 +00:00
|
|
|
.btn-group.btn-group-justified
|
2013-12-05 19:57:47 +00:00
|
|
|
a.btn.btn-lg.btn-primary(href='https://developer.foursquare.com/start', target='_blank')
|
2013-12-05 17:58:13 +00:00
|
|
|
i.fa.fa-check-square-o
|
|
|
|
| Getting Started
|
2013-12-05 19:57:47 +00:00
|
|
|
a.btn.btn-lg.btn-primary(href='https://developer.foursquare.com/docs/explore', target='_blank')
|
2013-12-05 17:58:13 +00:00
|
|
|
i.fa.fa-laptop
|
|
|
|
| API Console
|
2013-12-05 19:57:47 +00:00
|
|
|
a.btn.btn-lg.btn-primary(href='https://developer.foursquare.com/docs/', target='_blank')
|
2013-12-05 17:58:13 +00:00
|
|
|
i.fa.fa-code-fork
|
|
|
|
| API Endpoints
|
2013-12-05 05:24:41 +00:00
|
|
|
|
2013-12-05 19:57:47 +00:00
|
|
|
h3.text-primary Trending Venues
|
|
|
|
table.dataTable.table.table-striped.table-bordered
|
|
|
|
thead
|
|
|
|
tr
|
|
|
|
th Name
|
|
|
|
th.hidden-xs.hidden-sm Category
|
|
|
|
th.hidden-xs Checkins
|
|
|
|
th Here Now
|
|
|
|
tbody
|
|
|
|
for venue in trendingVenues.venues
|
|
|
|
tr
|
|
|
|
td= venue.name
|
|
|
|
td.hidden-xs.hidden-sm #{venue.categories[0].name}
|
|
|
|
td.hidden-xs #{venue.stats.checkinsCount}
|
|
|
|
td= venue.hereNow.count
|
|
|
|
h3.text-primary Venue Detail
|
|
|
|
p
|
|
|
|
img(src='#{venueDetail.venue.photos.groups[0].items[0].prefix}150x150#{venueDetail.venue.photos.groups[0].items[0].suffix}')
|
|
|
|
.label.label-primary #{venueDetail.venue.name} (#{venueDetail.venue.categories[0].shortName})
|
|
|
|
.label.label-success #{venueDetail.venue.location.address}, #{venueDetail.venue.location.city}, #{venueDetail.venue.location.state}
|
|
|
|
.label.label-warning #{venueDetail.venue.likes.count} likes, #{venueDetail.venue.rating} rating
|
2013-11-30 05:28:30 +00:00
|
|
|
|
2013-12-05 19:57:47 +00:00
|
|
|
h3.text-primary User Checkins
|
|
|
|
table.dataTable.table.table-bordered.table-hover
|
|
|
|
thead
|
|
|
|
tr
|
|
|
|
th Name
|
|
|
|
th Location
|
|
|
|
th Category
|
|
|
|
th Checkins
|
|
|
|
tbody
|
|
|
|
for checkin in userCheckins.checkins.items
|
|
|
|
tr
|
|
|
|
td= checkin.venue.name
|
|
|
|
td #{checkin.venue.location.address}, #{checkin.venue.location.city}, #{checkin.venue.location.state}
|
|
|
|
td= checkin.venue.categories[0].shortName
|
|
|
|
td= checkin.venue.stats.checkinsCount
|