aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-18 12:22:12 +0200
committerCédric Bonhomme <cedric@cedricbonhomme.org>2016-10-18 12:22:12 +0200
commit37b1b8750d728d11d95fb64fe5f26f9278555354 (patch)
tree3bbcafc9e7fd6757f5c2981ce4abb137d43f5219 /src
parentUpdated install.sh (diff)
downloadnewspipe-37b1b8750d728d11d95fb64fe5f26f9278555354.tar.gz
newspipe-37b1b8750d728d11d95fb64fe5f26f9278555354.tar.bz2
newspipe-37b1b8750d728d11d95fb64fe5f26f9278555354.zip
added bower in the postdeployment of the app
Diffstat (limited to 'src')
-rw-r--r--src/web/templates/admin/dashboard.html15
-rw-r--r--src/web/templates/layout.html8
2 files changed, 20 insertions, 3 deletions
diff --git a/src/web/templates/admin/dashboard.html b/src/web/templates/admin/dashboard.html
index 0d45118d..58b48fa1 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 class="table table-striped">
+<table id="table-users" class="table table-striped ">
<thead>
<tr>
<th>#</th>
@@ -56,4 +56,17 @@
{{ form.submit(class_="btn btn-default") }}
</form>
</div>
+<script>
+$(document).ready(function() {
+ $('#table-users').DataTable( {
+ responsive: true,
+ columnDefs: [
+ {
+ bSortable: false,
+ targets: [0, 5]
+ }
+ ]
+ });
+});
+</script>
{% endblock %}
diff --git a/src/web/templates/layout.html b/src/web/templates/layout.html
index 3e44c4eb..3dc1ff71 100644
--- a/src/web/templates/layout.html
+++ b/src/web/templates/layout.html
@@ -14,6 +14,12 @@
<link href="{{ url_for("static", filename="css/bootstrap.min.css") }}" rel="stylesheet" media="screen" />
<link href="{{ url_for("static", filename="css/customized-bootstrap.css") }}" rel="stylesheet" media="screen" />
+ <script type="text/javascript" src="{{ url_for('static', filename = 'js/jquery.js') }}"></script>
+ <script type="text/javascript" src="{{ url_for('static', filename = 'js/bootstrap.js') }}"></script>
+ <link rel="stylesheet" type="text/css" href="{{ url_for("static", filename="bower_components/datatables.net-bs/css/dataTables.bootstrap.min.css") }}">
+ <script type="text/javascript" src="{{ url_for("static", filename="bower_components/datatables.net/js/jquery.dataTables.min.js") }}"></script>
+ <script type="text/javascript" src="{{ url_for("static", filename="bower_components/datatables.net-bs/js/dataTables.bootstrap.min.js") }}"></script>
+
{% endblock %}
</head>
@@ -132,8 +138,6 @@
<!-- Bootstrap core JavaScript -->
<!-- Placed at the end of the document so the pages load faster -->
- <script type="text/javascript" src="{{ url_for('static', filename = 'js/jquery.js') }}"></script>
- <script type="text/javascript" src="{{ url_for('static', filename = 'js/bootstrap.js') }}"></script>
<script type="text/javascript" src="{{ url_for('static', filename = 'js/articles.js') }}"></script>
<script type="text/javascript" src="{{ url_for('static', filename = 'js/feed.js') }}"></script>
</body>
bgstack15