Skip to content

Commit 0ffc987

Browse files
committed
comparison: fix previous commit, make permalink work
1 parent f625698 commit 0ffc987

1 file changed

Lines changed: 5 additions & 9 deletions

File tree

codespeed/templates/codespeed/comparison.html

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,15 @@
3232
<div class="boxbody">
3333
{% for proj, executable in executables.items %}
3434
<ul><a href="#" class="togglefold">{{ proj }}</a> <a href="#" class="checkall">(All</a>, <a href="#" class="uncheckall">None)</a>
35-
{% if forloop.counter > 3 %}
3635
{% for exe in executable %}
3736
<li title="{{ exe.executable }} - {{ exe.revision }}">
38-
<input id="exe_{{ exe.key }}" type="checkbox" name="executables" value="{{ exe.key }}" />
37+
{% if exe.key in checkedexecutables %}
38+
<input id="exe_{{ exe.key }}" type="checkbox" name="executables" value="{{ exe.key }}" checked />
39+
{% else %}
40+
<input id="exe_{{ exe.key }}" type="checkbox" name="executables" value="{{ exe.key }}" />
41+
{% endif %}
3942
<label for="exe_{{ exe.key }}">{{ exe.name }}</label><div class="seriescolor"></div>
4043
</li>{% endfor %}
41-
{% else %}
42-
{% for exe in executable %}
43-
<li title="{{ exe.executable }} - {{ exe.revision }}">
44-
<input id="exe_{{ exe.key }}" type="checkbox" name="executables" value="{{ exe.key }}" checked />
45-
<label for="exe_{{ exe.key }}">{{ exe.name }}</label><div class="seriescolor"></div>
46-
</li>{% endfor %}
47-
{% endif %}
4844
</ul>{% endfor %}
4945
</div>
5046
</div>

0 commit comments

Comments
 (0)