freeCodeCamp/views/api/foursquare.jade

79 lines
2.8 KiB
Plaintext
Raw Normal View History

2013-11-19 21:20:18 +00:00
extends ../layout
block content
if !user.tokens.foursquare
.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
else
h1
2013-12-05 19:45:34 +00:00
i.fa.fa-foursquare
| Foursquare APIs
.btn-group.btn-group-justified
2013-12-05 18:02:11 +00:00
a.btn.btn-lg.btn-primary-outline(href='https://developer.foursquare.com/start', target='_blank')
i.fa.fa-check-square-o
| Getting Started
2013-12-05 18:02:11 +00:00
a.btn.btn-lg.btn-primary-outline(href='https://developer.foursquare.com/docs/explore', target='_blank')
i.fa.fa-laptop
| API Console
2013-12-05 18:02:11 +00:00
a.btn.btn-lg.btn-primary-outline(href='https://developer.foursquare.com/docs/', target='_blank')
i.fa.fa-code-fork
| API Endpoints
2013-12-05 05:24:41 +00:00
2013-12-05 19:45:34 +00:00
ul.nav.nav-tabs.nav-justified
li.active
a(href='#venues', data-toggle='tab') Venues
li
a(href='#users', data-toggle='tab') Users
.tab-content
#venues.tab-pane.fade.active.in
h3.text-primary Trending Venues
2013-11-30 05:28:30 +00:00
2013-12-05 19:45:34 +00:00
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
p
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-12-05 00:59:03 +00:00
2013-12-05 19:45:34 +00:00
#users.tab-pane.fade
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