aboutsummaryrefslogtreecommitdiffhomepage
path: root/views/historymovies.html
diff options
context:
space:
mode:
Diffstat (limited to 'views/historymovies.html')
-rw-r--r--views/historymovies.html76
1 files changed, 48 insertions, 28 deletions
diff --git a/views/historymovies.html b/views/historymovies.html
index 6843c8d6e..a2e608cf4 100644
--- a/views/historymovies.html
+++ b/views/historymovies.html
@@ -7,35 +7,55 @@
{% endblock head %}
{% block body %}
-<table id="history_movies" class="mdl-data-table" style="width:100%">
- <thead>
- <tr>
- <th>action</th>
- <th>title</th>
- <th>timestamp</th>
- <th>description</th>
- </tr>
- </thead>
-</table>
+ <div class="container-fluid">
+ <!-- Bread crumb and right sidebar toggle -->
+ <!-- ============================================================== -->
+ <div class="row page-titles">
+ <div class="col-md-5 col-8 align-self-center">
+ <h3 class="text-themecolor m-b-0 m-t-0"><i class="fas fa-sync"></i></h3>
+ </div>
+ <div class="col-md-7 col-4 align-self-center">
+ <div class="d-flex m-t-10 justify-content-end">
+ <div class="d-flex m-r-20 m-l-10 hidden-md-down">
+ <div class="chart-text m-r-10">
+ <h5 class="m-t-0 text-white">Some page settings</h5></div>
+ </div>
+ </div>
+ </div>
+ </div>
+ <!-- ============================================================== -->
+ <!-- End Bread crumb and right sidebar toggle -->
+ <!-- ============================================================== -->
+ <table id="history_movies" class="table table-striped" style="width:100%">
+ <thead>
+ <tr>
+ <th>action</th>
+ <th>title</th>
+ <th>timestamp</th>
+ <th>description</th>
+ </tr>
+ </thead>
+ </table>
+ </div>
{% endblock body %}
{% block tail %}
-<script>
- $(document).ready(function() {
- var table = $('#history_movies').DataTable( {
- "processing": true,
- "serverSide": true,
- "searching": false,
- "ordering": false,
- "lengthChange": false,
- "ajax": "/api/history_movies",
- "columns": [
- { "data": "action" },
- { "data": "title" },
- { "data": "timestamp" },
- { "data": "description" }
- ]
- } );
- } );
-</script>
+ <script>
+ $(document).ready(function () {
+ var table = $('#history_movies').DataTable({
+ "processing": true,
+ "serverSide": true,
+ "searching": false,
+ "ordering": false,
+ "lengthChange": false,
+ "ajax": "{{ url_for('api.historymovies') }}",
+ "columns": [
+ {"data": "action"},
+ {"data": "title"},
+ {"data": "timestamp"},
+ {"data": "description"}
+ ]
+ });
+ });
+ </script>
{% endblock tail %}