Ensure that the first tab is selected

This commit is contained in:
Eelco Dolstra 2013-02-20 14:29:35 +01:00
parent 3df9665f60
commit 84602f9ee6
4 changed files with 8 additions and 8 deletions

View file

@ -67,8 +67,8 @@
<p class="btn-info btn-large">[% flashMsg %]</p>
[% END %]
<ul id="tab" class="nav nav-tabs">
<li><a href="#tabs-summary" data-toggle="tab">Summary</a></li>
<ul class="nav nav-tabs">
<li class="active"><a href="#tabs-summary" data-toggle="tab">Summary</a></li>
<li><a href="#tabs-information" data-toggle="tab">Details</a></li>
<li><a href="#tabs-buildinputs" data-toggle="tab">Build inputs</a></li>
[% IF relatedbuilds %]<li><a href="#tabs-relatedbuilds" data-toggle="tab">Related builds</a></li>[% END %]

View file

@ -2,8 +2,8 @@
[% PROCESS common.tt %]
[% hideProjectName=1 hideJobsetName=1 hideJobName=1 %]
<ul id="tab" class="nav nav-tabs">
<li><a href="#tabs-status" data-toggle="tab">Status</a></li>
<ul class="nav nav-tabs">
<li class="active"><a href="#tabs-status" data-toggle="tab">Status</a></li>
<li><a href="#tabs-channels" data-toggle="tab">Channels</a></li>
<li><a href="#tabs-latestbuilds" data-toggle="tab">Latest builds</a></li>
</ul>

View file

@ -71,9 +71,9 @@
[% END %]
<ul id="tab" class="nav nav-tabs">
<ul class="nav nav-tabs">
[% IF !edit %]
<li><a href="#tabs-information" data-toggle="tab">Jobset</a></li>
<li class="active"><a href="#tabs-information" data-toggle="tab">Jobset</a></li>
[% IF jobset.errormsg %]<li><a href="#tabs-errors" data-toggle="tab"><img src="/static/images/error_16.png" /> Evaluation errors</a></li>[% END %]
<li><a href="#tabs-jobs" data-toggle="tab">Jobs ([% activeJobs.size %])</a></li>
[% END %]

View file

@ -1,8 +1,8 @@
[% WRAPPER layout.tt title=(edit ? (create ? "New Project" : "Editing Project $project.name") : "Project $project.name") %]
[% PROCESS common.tt %]
<ul id="tab" class="nav nav-tabs">
<ul class="nav nav-tabs">
[% IF !edit %]
<li><a href="#tabs-project" data-toggle="tab">Project</a></li>
<li class="active"><a href="#tabs-project" data-toggle="tab">Project</a></li>
[% END %]
<li><a href="#tabs-settings" data-toggle="tab">Settings</a></li>
[% IF !edit %]