aboutsummaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-18 18:51:58 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-18 18:51:58 +0200
commitbab53eab9138c91dce25eb3710ede73939a86a64 (patch)
tree3996bd20287c249a963fec3ed933a45a367c87ac /src/web
parentnew buildpack for bower (diff)
downloadnewspipe-bab53eab9138c91dce25eb3710ede73939a86a64.tar.gz
newspipe-bab53eab9138c91dce25eb3710ede73939a86a64.tar.bz2
newspipe-bab53eab9138c91dce25eb3710ede73939a86a64.zip
Datatables for the user public profile page.
Diffstat (limited to 'src/web')
-rw-r--r--src/web/templates/admin/dashboard.html4
-rw-r--r--src/web/templates/feed_list_simple.html15
2 files changed, 16 insertions, 3 deletions
diff --git a/src/web/templates/admin/dashboard.html b/src/web/templates/admin/dashboard.html
index 58b48fa1..48c98b68 100644
--- a/src/web/templates/admin/dashboard.html
+++ b/src/web/templates/admin/dashboard.html
@@ -5,7 +5,7 @@
{% block content %}
<div class="container">
<h1>{{ _('Registered users') }}</h1>
-<table id="table-users" class="table table-striped ">
+<table id="table-users" class="table table-striped">
<thead>
<tr>
<th>#</th>
@@ -64,7 +64,7 @@ $(document).ready(function() {
{
bSortable: false,
targets: [0, 5]
- }
+ }
]
});
});
diff --git a/src/web/templates/feed_list_simple.html b/src/web/templates/feed_list_simple.html
index f15d5f0a..3e04ad7e 100644
--- a/src/web/templates/feed_list_simple.html
+++ b/src/web/templates/feed_list_simple.html
@@ -1,6 +1,6 @@
{% if feeds | length != 0 %}
<div class="table-responsive">
- <table class="table table-striped">
+ <table id="table-feeds" class="table table-striped">
<thead>
<tr>
<th>#</th>
@@ -19,4 +19,17 @@
</tbody>
</table>
</div>
+<script>
+$(document).ready(function() {
+ $('#table-feeds').DataTable( {
+ responsive: true,
+ columnDefs: [
+ {
+ bSortable: false,
+ targets: [0]
+ }
+ ]
+ });
+});
+</script>
{% endif %}
bgstack15