forked from tobami/codespeed
-
-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathhome.html
More file actions
59 lines (54 loc) · 1.69 KB
/
home.html
File metadata and controls
59 lines (54 loc) · 1.69 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
{% extends "codespeed/base_site.html" %}
{% block navigation %}
{% endblock navigation %}
{% block body %}
<div id="presentation" class="clearfix">
<a href="{% url "changes" %}">
<div id="changes" class="menubox">
<h2>Changes</h2>
<p>Track performance changes in the latest revisions</p>
</div>
</a>
<a href="{% url "timeline" %}">
<div id="timeline" class="menubox">
<h2>Timeline</h2>
<p>Analyze performance over time</p>
</div>
</a>
<a href="{% url "comparison" %}">
<div id="comparison" class="menubox">
<h2>Comparison</h2>
<p>Compare different executables and revisions</p>
</div>
</a>
<br />
<div id="reports"></div>
</div>
{% endblock body %}
{% block extra_body %}
{{ block.super }}
<script type="text/javascript">
function permalinkToChanges(permalink) {
window.location=permalink;
}
function updateTable() {
//Add permalink events to table rows
$("div#reports table tbody tr").each(function() {
$(this).click(function () {
permalink_string = $(this).find("td:eq(0) label").text();
permalinkToChanges(permalink_string);
});
});
//Add hover effect to rows
$("div#reports table tbody tr td").hover(function() {
$(this).parents('tr').addClass('highlight');
}, function() {
$(this).parents('tr').removeClass('highlight');
});
}
$(function() {
$("#reports").html(getLoadText("Loading...", 0, true))
.load("{% url "reports" %}", function(responseText) { updateTable(); });
});
</script>
{% endblock %}