diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/command_line_builds.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/command_line_builds.html | 9 |
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 | ||
117 | function _ajax_update(file, all, dir){ | 120 | function _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 %} |