[LNT] r299483 - Make regressions sort by timestamp
Chris Matthews via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 4 16:09:30 PDT 2017
Author: cmatthews
Date: Tue Apr 4 18:09:30 2017
New Revision: 299483
URL: http://llvm.org/viewvc/llvm-project?rev=299483&view=rev
Log:
Make regressions sort by timestamp
Regression date sorting did not work as expected. Use the DataTables
data-order attribute to make sorting work as expected.
Modified:
lnt/trunk/lnt/server/ui/templates/v4_regression_list.html
Modified: lnt/trunk/lnt/server/ui/templates/v4_regression_list.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/v4_regression_list.html?rev=299483&r1=299482&r2=299483&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/v4_regression_list.html (original)
+++ lnt/trunk/lnt/server/ui/templates/v4_regression_list.html Tue Apr 4 18:09:30 2017
@@ -40,7 +40,7 @@
<td>{{ form_regression }}</td>
<td>{{utils.render_regression(regress)}} {% if regress.id|int == highlight|int %} <span class="label label-success">Updated</span> {% endif %} </td>
<td>{{RegressionState.names.get(regress.state,"Missing")}}</td>
- <td><span class="reltime" data-time="{{age.isoformat()}}" data-toggle="tooltip" title="{{age}}">{{ age.isoformat() }}</td>
+ <td data-order="{{ age.strftime("%s") }}"><span class="reltime" data-time="{{age.isoformat()}}" data-toggle="tooltip" title="{{age}}">{{ age.isoformat() }}</td>
<th>{{ size }}</th>
<td>{{ impact.previous }}</td><td>{{ impact.current }}</td>
{{ utils.get_regression_cell_value(impact, analysis)}}
More information about the llvm-commits
mailing list