forked from lix-project/hydra
Add an action menu to evaluations
This commit is contained in:
parent
4fa2821eea
commit
9801cb76db
|
@ -33,11 +33,19 @@ c.uri_for(c.controller('JobsetEval').action_for('view'),
|
|||
<input name="full" type="hidden" [% HTML.attributes(value => full) %]/>
|
||||
</form>
|
||||
|
||||
[% IF c.user_exists %]
|
||||
<a class="btn btn-warning pull-right" href="[% c.uri_for(c.controller('JobsetEval').action_for('release'), [eval.id]) %]">Release this evaluation</a>
|
||||
[% END %]
|
||||
|
||||
<ul class="nav nav-tabs">
|
||||
[% IF c.user_exists %]
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
|
||||
Actions
|
||||
<b class="caret"></b>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a href="[% c.uri_for(c.controller('JobsetEval').action_for('release'), [eval.id]) %]">Create a release from this evaluation</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
[% END %]
|
||||
|
||||
[% IF nowFail.size > 0 %]
|
||||
<li><a href="#tabs-now-fail" data-toggle="tab"><span class="text-warning">Newly-failing jobs</span></a></li>
|
||||
[% END %]
|
||||
|
|
|
@ -58,7 +58,7 @@ $(document).ready(function() {
|
|||
/* If no tab is active, show the first one. */
|
||||
$(".nav-tabs").each(function() {
|
||||
if ($("li.active", this).length > 0) return;
|
||||
$("a", $("li", this).first()).tab('show');
|
||||
$("a", $(this).children("li:not(.dropdown)").first()).tab('show');
|
||||
});
|
||||
|
||||
/* Ensure that pressing the back button on another page
|
||||
|
|
Loading…
Reference in a new issue