forked from lix-project/hydra
In the "My jobs" tab, ignore disabled projects/jobsets
This commit is contained in:
parent
27b795f46e
commit
589271bd72
|
@ -302,8 +302,12 @@ sub my_jobs_tab :Chained('user') :PathPart('my-jobs-tab') :Args(0) {
|
|||
$c->stash->{builds} = [$c->model('DB::Builds')->search(
|
||||
{ iscurrent => 1
|
||||
, maintainers => { ilike => "%" . $c->stash->{user}->emailaddress . "%" }
|
||||
, "project.enabled" => 1
|
||||
, "jobset.enabled" => 1
|
||||
},
|
||||
{ order_by => ["project", "jobset", "job"] })];
|
||||
{ order_by => ["project", "jobset", "job"]
|
||||
, join => ["project", "jobset"]
|
||||
})];
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
|
||||
[% ELSE %]
|
||||
|
||||
<p>Below is the most recent build of every job of which you
|
||||
<p>Below are the most recent builds of the [% builds.size %] jobs of which you
|
||||
(<tt>[% HTML.escape(user.emailaddress) %]</tt>) are a maintainer.</p>
|
||||
|
||||
[% INCLUDE renderBuildList %]
|
||||
|
|
Loading…
Reference in a new issue