aboutsummaryrefslogtreecommitdiff
path: root/src/web/templates/feed.html
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2018-10-29 22:43:02 +0100
committerCédric Bonhomme <cedric@cedricbonhomme.org>2018-10-29 22:43:02 +0100
commit3ac2de8ff898cfe2df74e8f1a74dd7ef9c65fb66 (patch)
tree5429e9ccbb6fb7e4b8ae63df90ce1023198c1362 /src/web/templates/feed.html
parentUpdated Python dependencies. (diff)
downloadnewspipe-3ac2de8ff898cfe2df74e8f1a74dd7ef9c65fb66.tar.gz
newspipe-3ac2de8ff898cfe2df74e8f1a74dd7ef9c65fb66.tar.bz2
newspipe-3ac2de8ff898cfe2df74e8f1a74dd7ef9c65fb66.zip
Improved the pagination and sorting of the list of articles of the public page.
Diffstat (limited to 'src/web/templates/feed.html')
-rw-r--r--src/web/templates/feed.html15
1 files changed, 6 insertions, 9 deletions
diff --git a/src/web/templates/feed.html b/src/web/templates/feed.html
index d914b82b..31db94a5 100644
--- a/src/web/templates/feed.html
+++ b/src/web/templates/feed.html
@@ -55,7 +55,7 @@
</tr>
</thead>
<tbody>
- {% for article in feed.articles %}
+ {% for article in articles %}
<tr>
<td><a href="{{ url_for("article.article_pub", article_id=article.id) }}">{{ article.title }}</a></td>
<td>{{ article.date | datetime }}</td>
@@ -67,13 +67,10 @@
</div>
</div>
+ <div class="row">
+ <div class="col-md-8 offset-md-1">
+ {{ pagination.links }}
+ </div>
+ </div>
</div><!-- /.container -->
-<script>
-$(document).ready(function() {
- $('#table-articles').DataTable( {
- responsive: true,
- order: [[1, "desc"]]
- });
-});
-</script>
{% endblock %}
bgstack15