2013-10-14 18:07:26 +00:00
|
|
|
[% WRAPPER layout.tt title="Dashboard" %]
|
|
|
|
[% PROCESS common.tt %]
|
|
|
|
|
|
|
|
<ul class="nav nav-tabs">
|
|
|
|
<li class="active"><a href="#tabs-starred-jobs" data-toggle="tab">Starred jobs</a></li>
|
2013-11-05 13:35:49 +00:00
|
|
|
<li><a href="#tabs-my-jobs" data-toggle="tab">My jobs</a></li>
|
2013-11-05 15:05:29 +00:00
|
|
|
<li><a href="#tabs-my-jobsets" data-toggle="tab">My jobsets</a></li>
|
2013-10-14 18:07:26 +00:00
|
|
|
</ul>
|
|
|
|
|
|
|
|
<div id="generic-tabs" class="tab-content">
|
|
|
|
|
|
|
|
<div id="tabs-starred-jobs" class="tab-pane active">
|
|
|
|
|
|
|
|
[% IF starredJobs.size > 0 %]
|
|
|
|
|
|
|
|
<p>Below are the 20 most recent builds of your starred jobs.</p>
|
|
|
|
|
|
|
|
<table class="table table-striped table-condensed">
|
|
|
|
<thead>
|
|
|
|
<tr><th>Job</th></tr>
|
|
|
|
</thead>
|
|
|
|
<tdata>
|
|
|
|
[% FOREACH j IN starredJobs %]
|
|
|
|
<tr>
|
|
|
|
<td>[% INCLUDE renderFullJobName project=j.job.get_column('project') jobset=j.job.get_column('jobset') job=j.job.name %]</td>
|
|
|
|
[% FOREACH b IN j.builds %]
|
|
|
|
<td><a href="[% c.uri_for('/build' b.id) %]">[% INCLUDE renderBuildStatusIcon size=16 build=b %]</a></td>
|
|
|
|
[% END %]
|
|
|
|
</tr>
|
|
|
|
[% END %]
|
|
|
|
</tdata>
|
|
|
|
</table>
|
|
|
|
|
|
|
|
[% ELSE %]
|
|
|
|
|
2013-11-05 13:35:49 +00:00
|
|
|
<div class="alert alert-warning">You have no starred jobs. You
|
|
|
|
can add them by visiting a job page and clicking on the ☆
|
|
|
|
icon.</div>
|
2013-10-14 18:07:26 +00:00
|
|
|
|
|
|
|
[% END %]
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
2013-11-05 13:35:49 +00:00
|
|
|
[% INCLUDE makeLazyTab tabName="tabs-my-jobs" uri=c.uri_for(c.controller('User').action_for('my_jobs_tab'), [user.username]) %]
|
2013-11-05 15:05:29 +00:00
|
|
|
[% INCLUDE makeLazyTab tabName="tabs-my-jobsets" uri=c.uri_for(c.controller('User').action_for('my_jobsets_tab'), [user.username]) %]
|
2013-11-05 13:35:49 +00:00
|
|
|
|
2013-10-14 18:07:26 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
[% END %]
|