hydra/src/root/search.tt

77 lines
2.1 KiB
Plaintext
Raw Normal View History

[% WRAPPER layout.tt title="Search results" %]
[% PROCESS common.tt %]
[% IF projects.size > 0; matched = 1 %]
<p>The following projects match your query:</p>
2013-02-22 17:11:29 +00:00
<table class="table table-striped table-condensed clickable-rows">
<thead>
<tr><th>Project</th><th>Description</th></tr>
</thead>
<tbody>
[% FOREACH p IN projects %]
<tr>
2013-02-22 17:11:29 +00:00
<td><span class="[% IF !p.enabled %]disabled-project[% END %]">[% INCLUDE renderProjectName project=p.name inRow=1 %]</span></td>
<td>[% HTML.escape(p.description) %]</td>
</tr>
[% END %]
</tbody>
</table>
[% END %]
[% IF jobsets.size > 0; matched = 1 %]
<p>The following jobsets match your query:</p>
2013-02-22 17:11:29 +00:00
<table class="table table-striped table-condensed clickable-rows">
<thead>
<tr><th>Jobset</th><th>Description</th></tr>
</thead>
<tbody>
[% FOREACH j IN jobsets %]
<tr>
2013-02-22 17:11:29 +00:00
<td><span class="[% IF !j.enabled %]disabled-jobset[% END %]">[% INCLUDE renderFullJobsetName project=j.get_column('project') jobset=j.name inRow=1 %]</span></td>
<td>[% HTML.escape(j.description) %]</td>
</tr>
[% END %]
</tbody>
</table>
[% END %]
[% IF jobs.size > 0; matched = 1 %]
2013-02-22 15:41:42 +00:00
<p>The following jobs match your query:[% IF jobs.size > limit %] <span class="text-warning">(first [% limit %] results only)</span>[% END %]</p>
2013-02-22 17:11:29 +00:00
<table class="table table-striped table-condensed clickable-rows">
<thead>
<tr><th>Job</th></tr>
</thead>
<tbody>
[% FOREACH j IN jobs %]
<tr>
2013-02-22 17:11:29 +00:00
<td><span class="[% IF !j.get_column('enabled') %]disabled-job[% END %]">[% INCLUDE renderFullJobName project=j.get_column('project') jobset=j.get_column('jobset') job=j.name inRow=1 %]</span></td>
</tr>
[% END %]
</tbody>
</table>
[% END %]
[% IF builds.size > 0; matched = 1 %]
<p>The following builds match your query:[% IF jobs.size > limit %] <span class="text-warning">(first [% limit %] results only)</span>[% END %]</p>
[% INCLUDE renderBuildList %]
[% END %]
[% IF !matched %]
<div class="alert alert-warn">Sorry! Nothing matches your
query.</div>
[% END %]
[% END %]