|
|
@@ -10,8 +10,6 @@
|
|
|
</style>
|
|
|
|
|
|
<body>
|
|
|
-
|
|
|
- {{ data }}
|
|
|
<h1 class="text-center"> Yelp API </h1>
|
|
|
<div class="container text-center">
|
|
|
<form class="form-signin" id="login_form" method="post" action="/hackathon/yelp/">
|
|
|
@@ -25,5 +23,36 @@
|
|
|
</form>
|
|
|
</div>
|
|
|
|
|
|
+ {% if data %}
|
|
|
+ <div class="col-lg-12">
|
|
|
+ <div class="table-responsive">
|
|
|
+ <table class="table table-bordered table-hover table-striped tablesorter">
|
|
|
+ <thead>
|
|
|
+ <tr>
|
|
|
+ <th class="header"> Name <i class="icon-sort"></i></th>
|
|
|
+ <th class="header"> Snippet Text <i class="icon-sort"></i></th>
|
|
|
+ <th class="header"> Open? <i class="icon-sort"></i></th>
|
|
|
+ <th class="header"> Review Count <i class="icon-sort"></i></th>
|
|
|
+ <th class="header"> URL <i class="icon-sort"></i></th>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+
|
|
|
+ {% for key in data %}
|
|
|
+ <tr>
|
|
|
+ <td>{{ key.name }}</td>
|
|
|
+ <td>{{ key.snippet_text }}</td>
|
|
|
+ <td>{{ key.is_closed }}</td>
|
|
|
+ <td>{{ key.review_count }}</td>
|
|
|
+ <td>{{ key.url }}</td>
|
|
|
+ </tr>
|
|
|
+ {% endfor %}
|
|
|
+
|
|
|
+ </tbody>
|
|
|
+ </table>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ {% endif %}
|
|
|
+
|
|
|
</body>
|
|
|
</html>
|