aboutsummaryrefslogtreecommitdiff
path: root/pyaggr3g470r/templates
diff options
context:
space:
mode:
authorCédric Bonhomme <kimble.mandel@gmail.com>2013-11-02 00:02:19 +0100
committerCédric Bonhomme <kimble.mandel@gmail.com>2013-11-02 00:02:19 +0100
commitb43ff94bdf211d56c9f7662a9b55cd866b4670ad (patch)
treefe2199f40c937c4372d8fc1bb8e9d27d61966598 /pyaggr3g470r/templates
parentMerged Flask branch into default. (diff)
downloadnewspipe-b43ff94bdf211d56c9f7662a9b55cd866b4670ad.tar.gz
newspipe-b43ff94bdf211d56c9f7662a9b55cd866b4670ad.tar.bz2
newspipe-b43ff94bdf211d56c9f7662a9b55cd866b4670ad.zip
Added new responsive table for the /feeds page.
Diffstat (limited to 'pyaggr3g470r/templates')
-rw-r--r--pyaggr3g470r/templates/feeds.html29
1 files changed, 24 insertions, 5 deletions
diff --git a/pyaggr3g470r/templates/feeds.html b/pyaggr3g470r/templates/feeds.html
index 1efa0b1f..b78b0a1b 100644
--- a/pyaggr3g470r/templates/feeds.html
+++ b/pyaggr3g470r/templates/feeds.html
@@ -2,10 +2,29 @@
{% block content %}
<div class="container">
<h1>You are subscribed to the following feeds</h1>
- <ul>
- {% for feed in feeds %}
- <li><a href="/feed/{{ feed.oid }}">{{ feed.title }}</a></li>
- {% endfor %}
- </ul>
+
+ <div class="table-responsive">
+ <table class="table table-striped">
+ <thead>
+ <tr>
+ <th>#</th>
+ <th>Title</th>
+ <th>Site</th>
+ <th>Articles</th>
+ </tr>
+ </thead>
+ <tbody>
+ {% for feed in feeds %}
+ <tr>
+ <td>{{ loop.index }}</td>
+ <td><a href="/feed/{{ feed.oid }}">{{ feed.title }}</a></td>
+ <td><a href="{{ feed.site_link }}">{{ feed.site_link }}</a></td>
+ <td>{{ feed.articles|count }}</td>
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+ </div>
+
</div><!-- /.container -->
{% endblock %} \ No newline at end of file
bgstack15