In the "My jobs" tab, ignore disabled projects/jobsets

This commit is contained in:
Eelco Dolstra 2013-11-05 14:53:52 +01:00
parent 27b795f46e
commit 589271bd72
2 changed files with 6 additions and 2 deletions

View file

@ -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"]
})];
}

View file

@ -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 %]