[LNT] r291051 - Better log display
Chris Matthews via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 4 17:16:56 PST 2017
Author: cmatthews
Date: Wed Jan 4 19:16:56 2017
New Revision: 291051
URL: http://llvm.org/viewvc/llvm-project?rev=291051&view=rev
Log:
Better log display
Add JS datatable to make log display more useful.
Modified:
lnt/trunk/lnt/server/ui/templates/log.html
Modified: lnt/trunk/lnt/server/ui/templates/log.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/log.html?rev=291051&r1=291050&r2=291051&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/log.html (original)
+++ lnt/trunk/lnt/server/ui/templates/log.html Wed Jan 4 19:16:56 2017
@@ -8,15 +8,15 @@
{% block body %}
-<table class="table table-striped table-hover table-condensed">
+<table id="logs" class="table">
<thead>
<tr>
- <th>Kind</th>
- <th>Location</th>
- <th>Message<th>
+ <th style="width:130px">Kind</th>
+ <th style="width:130px">Location</th>
+ <th>Message</th>
</tr>
</thead>
- <tbody class="searchable">
+ <tbody>
{% for item in config.mem_logger.buffer[::-1] %}
{% if item.levelname|string() == 'WARNING' %}
<tr class="warning">
@@ -30,5 +30,20 @@
<td><pre>{{ item.msg }}</pre></td>
</tr>
{% endfor %}
+ </tbody>
+ </table>
+
+
+<script type="text/javascript">
+$(document).ready( function () {
+ var settings = {"dom": '<"top"if>rt<"bottom"Flp>',
+ "aLengthMenu": [[50, -1],
+ [50, "All"]]};
+ dt = $('#logs').DataTable(settings);
+
+});
+
+</script>
+
{% endblock %}
More information about the llvm-commits
mailing list