aboutsummaryrefslogtreecommitdiff
path: root/src/web
diff options
context:
space:
mode:
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