|
@@ -2,30 +2,44 @@
|
|
|
<html>
|
|
|
<body>
|
|
|
{% include 'hackathon/base.html' %}
|
|
|
- <h1 class="text-center"> {{ title }}</h1>
|
|
|
+ <h1 class="text-center"> {{ title }}</h1>
|
|
|
+ <br>
|
|
|
+
|
|
|
+ <div class="container text-center">
|
|
|
+ <form class="form-inline" method='get' action="/hackathon/twitterTweets/">
|
|
|
+ <div class="form-group">
|
|
|
+ <input type="text" name="tweets" class="form-control" placeholder="Search a tagged media">
|
|
|
+ </div>
|
|
|
+ <button type="submit" class="btn btn-default">Search</button>
|
|
|
+ </form>
|
|
|
+ </div>
|
|
|
+ <br>
|
|
|
+
|
|
|
+ {% if content %}
|
|
|
<div class="col-lg-12">
|
|
|
<div class="table-responsive">
|
|
|
<table class="table table-bordered table-hover table-striped tablesorter">
|
|
|
<thead>
|
|
|
- <tr>
|
|
|
- <th class="header"> Who <i class="icon-sort"></i></th>
|
|
|
- <th class="header"> Tweet <i class="icon-sort"></i></th>
|
|
|
- <th class="header"> Retweets <i class="icon-sort"></i></th>
|
|
|
- <th class="header"> Created <i class="icon-sort"></i></th>
|
|
|
+ <tr>
|
|
|
+ <th class="header"> Who <i class="icon-sort"></i></th>
|
|
|
+ <th class="header"> Tweet <i class="icon-sort"></i></th>
|
|
|
+ <th class="header"> Retweets <i class="icon-sort"></i></th>
|
|
|
+ <th class="header"> Created <i class="icon-sort"></i></th>
|
|
|
|
|
|
- </tr>
|
|
|
- </thead>
|
|
|
- <tbody>
|
|
|
- {% for item in content %}
|
|
|
- <tr>
|
|
|
- <td>{{ item.user.screen_name }}</td>
|
|
|
- <td>{{ item.text }}</td>
|
|
|
- <td>{{ item.retweet_count}}</td>
|
|
|
- <td>{{ item.created_at}}</td>
|
|
|
- {% endfor %}
|
|
|
- </tbody>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tbody>
|
|
|
+ {% for item in content %}
|
|
|
+ <tr>
|
|
|
+ <td>{{ item.user.screen_name }}</td>
|
|
|
+ <td>{{ item.text }}</td>
|
|
|
+ <td>{{ item.retweet_count}}</td>
|
|
|
+ <td>{{ item.created_at}}</td>
|
|
|
+ {% endfor %}
|
|
|
+ </tbody>
|
|
|
</table>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ {% endif %}
|
|
|
</body>
|
|
|
</html>
|