aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-18 22:06:51 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-18 22:06:51 +0200
commit7b592bc37503add484c87f0661ae65dc4570ec8d (patch)
tree27e9c13b2848b52a5b7bec5320da489ead90fad0
parentDatatables for the user public profile page. (diff)
downloadnewspipe-7b592bc37503add484c87f0661ae65dc4570ec8d.tar.gz
newspipe-7b592bc37503add484c87f0661ae65dc4570ec8d.tar.bz2
newspipe-7b592bc37503add484c87f0661ae65dc4570ec8d.zip
Datatables for the feeds page.
-rw-r--r--src/web/templates/feed_list.html15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/web/templates/feed_list.html b/src/web/templates/feed_list.html
index f8e3551e..8c258c3c 100644
--- a/src/web/templates/feed_list.html
+++ b/src/web/templates/feed_list.html
@@ -1,6 +1,6 @@
{% if feeds.count() != 0 %}
<div class="table-responsive">
- <table class="table table-striped">
+ <table id="table-feeds" class="table table-striped">
<thead>
<tr>
<th>#</th>
@@ -39,4 +39,17 @@
</tbody>
</table>
</div>
+<script>
+$(document).ready(function() {
+ $('#table-feeds').DataTable( {
+ responsive: true,
+ columnDefs: [
+ {
+ bSortable: false,
+ targets: [0, 1, 4, 5]
+ }
+ ]
+ });
+});
+</script>
{% endif %}
bgstack15