FHOH54HQJOWN2HGIKLVADURVYYHIIORLKEFI4NVKE4K457GLG6CAC
EJ7C77C3QLT7JPRHFTDIOY4WAXPXAXMAPWJYWEPKGPO5CCGD3SZAC
J5UVLXOK6EDIL5I7VKWH4V2QDS4DPD7FHRK6XBWSXFRQS4JKXFZQC
HRAFVVOEGQJQS4XQNZSMNYN2SUZGKEGPSJUDZUBMI2IN32WFNQ4QC
UICHT2PSN2QOCHP6MGY5QQJUDU4IF6FBIOJLBA55QBJDK6ST566AC
# Perform build search in separate queries to prevent seq scan on buildoutputs table.
{ -or => { "buildoutputs.path" => trim($query), "drvpath" => trim($query)} },
{ "buildoutputs.path" => trim($query) },
$c->stash->{buildsdrv} = [ $c->model('DB::Builds')->search( { "drvpath" => trim($query) }, { order_by => ["id desc"] } ) ];
$c->stash->{buildsdrv} = [ $c->model('DB::Builds')->search(
{ "drvpath" => trim($query) },
{ order_by => ["id desc"] } ) ];
[% matched = 0 %][% BLOCK renderBuildSearch %][% IF builds.size > 0 %] <p>The following builds match your query:[% IF builds.size > limit %] <span class="text-warning">(first [% limit %] results only)</span>[% END %]</p> [% INCLUDE renderBuildList %]
[% matched = 0 %]
[% BLOCK renderBuildSearch %]
[% IF builds.size > 0 %]
<p>The following builds match your query:[% IF builds.size > limit %] <span class="text-warning">(first [% limit %] results only)</span>[% END %]</p>
[% INCLUDE renderBuildList %]
[% END %][% END; %]
[% END %]
[% END; %]
[% IF builds.size > 0; matched = 1 %]
[% INCLUDE renderBuildSearch %][% INCLUDE renderBuildSearch builds=buildsdrv %]
[% INCLUDE renderBuildSearch %]
[% INCLUDE renderBuildSearch builds=buildsdrv %]
<p>The following builds match your query:[% IF jobs.size > limit %] <span class="text-warning">(first [% limit %] results only)</span>[% END %]</p>
[% IF builds.size > 0 || buildsdrv.size > 0 ; matched = 1 ; END %]
[% INCLUDE renderBuildList %][% END %]
<div class="alert alert-warn">Sorry! Nothing matches your query.</div>
<div class="alert alert-warn">Sorry! Nothing matches your
query.</div>