• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!DOCTYPE html>
2<title>Rebaseline-o-matic logs</title>
3<style>
4h1 {
5    font-size: 1em;
6    margin: 0;
7    padding: 4px;
8    background-color: lightgray;
9}
10pre {
11    margin: 0;
12    padding: 4px;
13}
14.container {
15    border: 1px dashed;
16    margin-bottom: 8px;
17}
18</style>
19
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 %}
32
33{% if not logs %}
34No more logs.
35{% endif %}
36
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> ');
42    })
43</script>
44