diff options
author | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-11-13 17:29:47 +0100 |
---|---|---|
committer | Cédric Bonhomme <cedric@cedricbonhomme.org> | 2016-11-13 17:29:47 +0100 |
commit | 0408a624a671f06a6ba0122e78b41f48ac2900c6 (patch) | |
tree | 73cf32e4aaeba0725d80f84643dec8cf69592ee3 /src/web/templates/feed.html | |
parent | Updated CHANGELOG. (diff) | |
download | newspipe-0408a624a671f06a6ba0122e78b41f48ac2900c6.tar.gz newspipe-0408a624a671f06a6ba0122e78b41f48ac2900c6.tar.bz2 newspipe-0408a624a671f06a6ba0122e78b41f48ac2900c6.zip |
Added page for public feeds.
Diffstat (limited to 'src/web/templates/feed.html')
-rw-r--r-- | src/web/templates/feed.html | 39 |
1 files changed, 35 insertions, 4 deletions
diff --git a/src/web/templates/feed.html b/src/web/templates/feed.html index 7a40ca9a..d8dd7f5c 100644 --- a/src/web/templates/feed.html +++ b/src/web/templates/feed.html @@ -41,10 +41,41 @@ {% endif %} </p> </div> - <div class="well"> - {% if feed.articles.all()|count != 0 %} - <div>{{ tag_cloud|safe }}</div> - {% endif %} + + <div class="row"> + <div class="col-md-8"> + <div class="table-responsive"> + <table id="table-articles" class="table table-striped"> + <thead> + <tr> + <th>{{ _('Article') }}</th> + </tr> + </thead> + <tbody> + {% for article in articles %} + <tr> + <td><a href="{{ url_for("article.article_pub", article_id=article.id) }}">{{ article.title }}</a></td> + </tr> + {% endfor %} + </tbody> + </table> + </div> + </div> + + + <div class="col-md-4"> + {% if articles | count != 0 %} + <div>{{ tag_cloud | safe }}</div> + {% endif %} + </div> </div> + </div><!-- /.container --> +<script> +$(document).ready(function() { + $('#table-articles').DataTable( { + responsive: true + }); +}); +</script> {% endblock %} |