Repository navigation
Expand file tree
/
Copy pathchanges.html
More file actions
92 lines (81 loc) · 3.02 KB
/
Copy pathchanges.html
File metadata and controls
92 lines (81 loc) · 3.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{% extends "codespeed/base_site.html" %}
{% load static %}
{% block title %}{{ block.super }}: Changes{% endblock %}
{% block description %}{% if pagedesc %}{{ pagedesc }}{% else %}{{ block.super }}{% endif %}{% endblock %}
{% block navigation %}
{{ block.super }}
{% endblock %}
{% block nav-changes %}class="current"><a href="{% url "changes" %}">Changes</a>{% endblock %}
{% block body %}
<div id="sidebar">
<div class="sidebox">
<div class="boxhead"><h2>Environment</h2></div>
<div class="boxbody">
<ul>
{% for env in environments %}
<li title="{{ env.os }}, {{ env.cpu }}">
<input id="env{{ env.id }}" type="radio" name="environment" value="{{ env.id }}" />
<label for="env{{ env.id }}">{{ env }}</label>
</li>
{% endfor %}
</ul>
</div>
</div>
<div id="executable" class="sidebox">
<div class="boxhead"><h2>Executable</h2></div>
<div class="boxbody">
{% if executables|length > 1 %}<ul>{% endif %}{% for proj, execs in executables.items %}
<ul>{% if executables|length > 1 %}{{ proj }}{% endif %}{% for exec in execs|dictsort:"name" %}
<li title="{{ exec.description }}"><!-- the input id != value. It is used for exeutable color order -->
<input id="executable{{ exec.id }}" type="radio" name="executable" value="{{ exec.id }}" />
<label for="executable{{ exec.id }}">{{ exec }}</label><div class="seriescolor"></div>
</li>{% endfor %}
</ul>
{% endfor %}
{% if executables|length > 1 %}</ul>{% endif %}
</div>
</div>
<div id="options" class="sidebox">
<div class="boxhead"><h2>Options</h2></div>
<div class="boxbody">
<ul>
<li title="Trend since a given number of tested revisions ago. Average of 3 revisions">Trend for last<br/>
<select id="trend">
{% for trend in trends %}<option value="{{ trend }}">{{ trend }}</option>{% endfor %}
</select> revisions
</li>
</ul>
</div>
</div>
</div>
<div id="configbar">
<span class="options">Results for revision <select id="revision"></select></span>
<a id="permalink" href="#">Permalink</a>
</div>
<div id="content" class="clearfix">
<div id="contentwrap"></div>
</div>
{% endblock %}
{% block extra_script %}
{{ block.super }}
<script type="text/javascript" src="{% static 'js/jquery.tablesorter.min.js' %}"></script>
<script type="text/javascript" src="{% static 'js/changes.js' %}"></script>
<script type="text/javascript">
var TIMELINE_URL = "{% url "timeline" %}";
$(function() {
Changes.config({
changethres: {{ defaultchangethres }},
trendthres: {{ defaulttrendthres }}
});
Changes.init({
project: "{{ defaultexecutable.project }}",
executable: "{{ defaultexecutable.id }}",
environment: "{{ defaultenvironment.id }}",
revision: "{{ selectedrevision.commitid }}",
trend: "{{ defaulttrend }}",
projectmatrix: eval({{ projectmatrix|safe }}),
revisionlists: eval({{ revisionlists|safe }})
});
});
</script>
{% endblock %}