summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/toastergui/templates
diff options
context:
space:
mode:
authorMarlon Rodriguez Garcia <marlon.rodriguez-garcia@savoirfairelinux.com>2023-12-13 11:01:41 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-12-13 20:35:02 +0000
commit524255ad266c88785cad2f410b3fd6b74aa24071 (patch)
tree17e7b4d790ab8d5914716a87ae3cf62b446d74ff /bitbake/lib/toaster/toastergui/templates
parent85f84b4090f3fc84b377d37a18af7e4cb1b78f69 (diff)
downloadpoky-524255ad266c88785cad2f410b3fd6b74aa24071.tar.gz
bitbake: toaster: Commandline build import table improvements
Added dataTables library to include sorting and pagination for table element Added jquery.dataTables to customize table rendering in section "Import eventlogs". This library includes the following: sorting, pagination, search and CSS styles. Default to ascending order and 50 builds per page. (Bitbake rev: f88f314cb2b071569acf3c7d43fb7256ba50762f) Signed-off-by: Marlon Rodriguez Garcia <marlon.rodriguez-garcia@savoirfairelinux.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/command_line_builds.html9
1 files changed, 8 insertions, 1 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/command_line_builds.html b/bitbake/lib/toaster/toastergui/templates/command_line_builds.html
index d6ff685cdf..fcbe80d8d1 100644
--- a/bitbake/lib/toaster/toastergui/templates/command_line_builds.html
+++ b/bitbake/lib/toaster/toastergui/templates/command_line_builds.html
@@ -1,6 +1,7 @@
1{% extends "base.html" %} 1{% extends "base.html" %}
2{% load projecttags %} 2{% load projecttags %}
3{% load humanize %} 3{% load humanize %}
4{% load static %}
4 5
5{% block title %} Import Builds from eventlogs - Toaster {% endblock %} 6{% block title %} Import Builds from eventlogs - Toaster {% endblock %}
6 7
@@ -68,7 +69,7 @@
68 </h4> 69 </h4>
69 {% if files %} 70 {% if files %}
70 <div class="table-responsive"> 71 <div class="table-responsive">
71 <table class="table col-md-6 table-bordered table-hover"> 72 <table class="table col-md-6 table-bordered table-hover" id="eventlog-table" style="border-collapse: collapse;">
72 <thead> 73 <thead>
73 <tr class="row"> 74 <tr class="row">
74 <th scope="col">Name</th> 75 <th scope="col">Name</th>
@@ -112,6 +113,8 @@
112 </div> 113 </div>
113</div> 114</div>
114 115
116<link rel="stylesheet" href="{% static 'css/jquery.dataTables-1.13.8.min.css' %}" type='text/css'/>
117<script src="{% static 'js/jquery.dataTables-1.13.8.min.js' %}"> </script>
115<script> 118<script>
116 119
117function _ajax_update(file, all, dir){ 120function _ajax_update(file, all, dir){
@@ -193,6 +196,10 @@ $( "#form_file").on( "submit", function( event ) {
193 }, 10000) 196 }, 10000)
194}); 197});
195 198
199$(document).ready( function () {
200 $('#eventlog-table').DataTable({order: [[0, 'desc']], "pageLength": 50});
201});
202
196</script> 203</script>
197 204
198{% endblock %} 205{% endblock %}