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-30 07:07:29 +00:00
|
|
|
|
if !user.tokens.foursquare
|
|
|
|
|
.alert.alert-warning
|
|
|
|
|
button.close(type='button', data-dismiss='alert', aria-hidden='true') ×
|
|
|
|
|
p= message
|
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
|
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
|
2013-11-30 07:11:04 +00:00
|
|
|
|
for venue in trendingVenues.venues
|
2013-11-30 05:03:31 +00:00
|
|
|
|
tr
|
|
|
|
|
td= venue.name
|
|
|
|
|
td #{venue.location.address}, #{venue.location.city}, #{venue.location.state}
|
|
|
|
|
td= venue.stats.checkinsCount
|
|
|
|
|
td= venue.hereNow.count
|
|
|
|
|
|
2013-11-30 06:12:28 +00:00
|
|
|
|
.lead Venue Detail
|
2013-11-30 06:52:29 +00:00
|
|
|
|
img.img-thumbnail(src='https://irs3.4sqi.net/img/general/200x200/11109710_xePHC-bh76LL_EaG-tsM1lUV6Bp-VUG1r_haDSqSvBM.jpg')
|
2013-11-30 07:11:04 +00:00
|
|
|
|
p.text-danger Name: #{venueDetail.venue.name}
|
|
|
|
|
p.text-muted Location: #{venueDetail.venue.location.address}, #{venueDetail.venue.location.city}, #{venueDetail.venue.location.state}
|
2013-11-30 06:22:56 +00:00
|
|
|
|
p.text-success Categories:
|
2013-11-30 07:11:04 +00:00
|
|
|
|
for category in venueDetail.venue.categories
|
2013-11-30 06:22:56 +00:00
|
|
|
|
span #{category.shortName} |
|
2013-11-30 07:11:04 +00:00
|
|
|
|
p.text-info Likes: #{venueDetail.venue.likes.count}
|
|
|
|
|
p.text-warning Rating: #{venueDetail.venue.rating}
|
2013-11-30 05:28:30 +00:00
|
|
|
|
|
2013-11-25 16:57:06 +00:00
|
|
|
|
#users.tab-pane.fade
|
2013-11-30 06:52:29 +00:00
|
|
|
|
.lead User Checkins
|
|
|
|
|
table.table.table-bordered.table-hover
|
|
|
|
|
thead
|
|
|
|
|
tr
|
|
|
|
|
th Name
|
|
|
|
|
th Location
|
|
|
|
|
th Category
|
|
|
|
|
th Checkins
|
|
|
|
|
tbody
|
2013-11-30 07:11:04 +00:00
|
|
|
|
for checkin in userCheckins.checkins.items
|
2013-11-30 06:52:29 +00:00
|
|
|
|
tr
|
|
|
|
|
td= checkin.venue.name
|
|
|
|
|
td #{checkin.venue.location.address}, #{checkin.venue.location.city}, #{checkin.venue.location.state}
|
|
|
|
|
td= checkin.venue.categories[0].shortName
|
2013-11-30 07:11:04 +00:00
|
|
|
|
td= checkin.venue.stats.checkinsCount
|