Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

render yelp bookmarks

  • Loading branch information...
commit 36887f39c3a66494768fc7323990934c6f7b059c 1 parent 4619c67
@dolapo authored
View
34 minivishnu/frontend/static/main.css
@@ -91,3 +91,37 @@ div.content.yelp-content {
-webkit-box-shadow: -1px 1px 1px #888 inset;
box-shadow: -1px 1px 1px #888 inset;
}
+
+#enter-yelp .bklist {
+ overflow: auto;
+ max-height: 350px;
+}
+
+#enter-yelp .bkrow {
+ border-bottom: 1px solid #d4d4d4;
+ max-width: 95%;
+ padding: 6px 0 12px 0;
+}
+
+#enter-yelp .bkrow:hover {
+ background-color: #fafafa;
+}
+
+#enter-yelp .bkrow .name {
+ font-size: 11pt;
+ margin-bottom: 6px;
+ color: #888;
+}
+
+#enter-yelp .bkrow .name a,
+#enter-yelp .bkrow .name a:visited {
+ text-decoration: none;
+ color: #888;
+}
+#enter-yelp .bkrow .name a:hover {
+ text-decoration: underline;
+}
+
+#enter-yelp .bkrow:hover .name a {
+ color: #00c;
+}
View
24 minivishnu/frontend/templates/index.html
@@ -37,10 +37,30 @@
{% if user %}
<div id="enter-yelp" class="content yelp-content{%if yelpId%} has-yelp{%else%} no-yelp{%end%}">
{% if yelpId %}
- <h1>Your Yelp Info</h1>
+ <h1>Your {{ len(yelpBookmarks) }} Yelp Bookmarks</h1>
<div class="body">
<div class="head">
- {{ len(yelpBookmarks) }} bookmarks
+ </div>
+ <div class="bklist">
+ {% for yelpBookmark in yelpBookmarks %}
+ <div class="bkrow">
+ <div class="info">
+ <div class="name">
+ <a href="http://yelp.com/biz/{{yelpBookmark['id']}}">
+ {{yelpBookmark['name']}}
+ </a>
+ </div>
+ {% if yelpBookmark['neighborhoods'] %}
+ <div class="neighborhood">
+ {{yelpBookmark['neighborhoods']}}
+ </div>
+ {% end %}
+ <div class="address">
+ {{'<br />'.join(yelpBookmark['formatted_address_brief'])}}
+ </div>
+ </div>
+ </div>
+ {% end %}
</div>
</div>
{% else %}
Please sign in to comment.
Something went wrong with that request. Please try again.