So now "?compare=<jobset name>" is no longer a hidden feature!
P.S. Encountered this wonderful TemplateToolkit brainfuck again: if you want to get the number of rows in (say) project.jobsets, you can't say "project.jobsets.size". That will usually give the right result, except that if there is only one row in project.jobsets, it will evaluate to 3. Instead you have to use "project.jobsets_rs.count".
NIAYAEM2E2SAO7CLJTMVWNGEVGQ5ADFYW3OQUPDN3FMF3ATFURYAC
<div class="btn-group pull-right">
<a class="btn btn-primary dropdown-toggle" data-toggle="dropdown" href="#"><i class="icon-white icon-eye-open"></i> Compare to...</a>
<ul class="dropdown-menu">
<li><a href="?">Preceding evaluation in the same jobset</tt></a></li>
[% IF project.jobsets_rs.count > 1 %]
<li class="divider"></li>
[% FOREACH j IN project.jobsets; IF j.name != jobset.name %]
<li><a href="?compare=[% j.name %]">Jobset <tt>[% project.name %]:[% j.name %]</tt></a></li>
[% END; END %]
[% END %]
</ul>
</div>