Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / Tools / RebaselineLogServer / logs.html
blob8f2498d62c5cca17c63098ca133143d6766476d5
1 <!DOCTYPE html>
2 <title>Rebaseline-o-matic logs</title>
3 <style>
4 h1 {
5 font-size: 1em;
6 margin: 0;
7 padding: 4px;
8 background-color: lightgray;
10 pre {
11 margin: 0;
12 padding: 4px;
14 .container {
15 border: 1px dashed;
16 margin-bottom: 8px;
18 </style>
20 {% for log in logs %}
21 <div class="container">
22 <h1>
23 <script>
24 // This date format needs to match the format string used in loghandler.py.
25 lastDateBeforeQueryParameter = '{{ log.date|date:"Y-m-d\TH:i:s" }}Z';
26 document.write(new Date('{{ log.date|date:"c" }}').toLocaleString())
27 </script>
28 </h1>
29 <pre>{% if log.is_no_needs_rebaseline %}No NeedsRebaseline entries in TestExpectations.{% else %}{{ log.content }}{% endif %}</pre>
30 </div>
31 {% endfor %}
33 {% if not logs %}
34 No more logs.
35 {% endif %}
37 <script>
38 var urlBase = location.toString().replace(/\?.*/, '');
39 [3, 10, 100].forEach(function(numLogs) {
40 var url = urlBase + "?{{ before_param }}=" + lastDateBeforeQueryParameter + "&{{ num_logs_param }}=" + numLogs;
41 document.write('<a href="' + url + '">previous ' + numLogs + '</a> ');
43 </script>