[% WRAPPER layout.tt title=(edit ? (create ? "Create jobset in project $project.name" : "Editing jobset $project.name:$jobset.name") : "Jobset $project.name:$jobset.name") %] [% PROCESS common.tt %] [% IF edit %]
[% END %] [% BLOCK renderInputAlt %] [% IF edit %] [% INCLUDE maybeEditString param=param value=alt.value %]
[% ELSE %] [% INCLUDE maybeEditString param=param value=alt.value %] [% END %] [% END %] [% BLOCK renderInput %] [% IF edit %][% END %] [% INCLUDE maybeEditString param="$baseName-name" value=input.name extraClass="shortString" %] [% INCLUDE renderSelection curValue=input.type param="$baseName-type" options=inputTypes %] [% FOREACH alt IN input.jobsetinputalts %] [% IF input.type == "string" && !edit %] "[% HTML.escape(alt.value) %]" [% ELSE %] [% INCLUDE renderInputAlt alt=alt param="$baseName-values" %] [% END %] [% END %] [% IF edit %][% END %] [% END %] [% BLOCK renderInputs %]

Inputs

[% FOREACH input IN jobset.jobsetinputs %] [% INCLUDE renderInput input=input baseName="input-$input.name" %] [% END %] [% IF edit %] [% END %]
Input nameTypeValues
[% END %]
[% IF !edit && evals.size() > 0 %]

Most recent evaluations

[% INCLUDE renderEvals linkToAll=c.uri_for(c.controller('Jobset').action_for('evals'), [project.name, jobset.name]) %] [% END %] [% IF !edit && activeJobsStatus %]

Status

[% FOREACH s IN systems %][% END %] [% odd = 0 %] [% FOREACH j IN activeJobsStatus %] [% FOREACH s IN systems %] [% system = s.system %] [% systemStatus = j.get_column(system) %] [% END %] [% END %]
Job[% s.system %]
[% INCLUDE renderJobName project=project.name jobset = jobset.name job = j.get_column('job') %] [% IF systemStatus != undef %] [% INCLUDE renderBuildStatusIcon buildstatus=systemStatus size=16 %] [% END %]
[% END %] [% IF !edit && !activeJobsStatus %]

Status

[ Show status overview ]

[% END %]
[% IF !edit %] [% IF jobset.errormsg %]

Evaluation errors

Errors occurred at [% INCLUDE renderDateTime timestamp=jobset.errortime %].

[% HTML.escape(jobset.errormsg) %]
[% END %] [% END %]

Information

[% IF edit %] [% END %] [% IF !edit %] [% END %]
Identifier: [% INCLUDE maybeEditString param="name" value=jobset.name %]
Description: [% INCLUDE maybeEditString param="description" value=jobset.description %]
Nix expression: [% INCLUDE maybeEditString param="nixexprpath" value=jobset.nixexprpath extraClass="shortString" %] in input [% INCLUDE maybeEditString param="nixexprinput" value=jobset.nixexprinput extraClass="shortString" %]
Enabled: [% INCLUDE renderSelection param="enabled" curValue=jobset.enabled radiobuttons=1 options={"1" = "Yes", "0" = "No"} %]
Enable email notification: [% INCLUDE renderSelection param="enableemail" curValue=jobset.enableemail radiobuttons=1 options={"1" = "Yes", "0" = "No"} %]
Email override: [% INCLUDE maybeEditString param="emailoverride" value=jobset.emailoverride %]
Number of builds to keep: [% INCLUDE maybeEditString param="keepnr" value=jobset.keepnr %]
Last checked: [% IF jobset.lastcheckedtime %] [% INCLUDE renderDateTime timestamp = jobset.lastcheckedtime %][% IF jobset.errormsg %], with errors! [% ELSE %], no errors [% END %] [% ELSE %] never [% END %]
[% INCLUDE renderInputs %]
[% IF !edit %]

Jobs

This jobset currently contains the following [% activeJobs.size %] jobs:

[% IF activeJobs.size == 0 %](none)[% END %] [% FOREACH j IN activeJobs %][% INCLUDE renderJobName project=project.name jobset=jobset.name job=j %]
[% END %]

This jobset used to contain the following [% inactiveJobs.size %] jobs:

[% IF inactiveJobs.size == 0 %](none)[% END %] [% FOREACH j IN inactiveJobs %][% INCLUDE renderJobName project=project.name jobset=jobset.name job=j %]
[% END %]

[% END %]
[% IF edit %] [% INCLUDE renderInput input="" extraClass="template" id="input-template" baseName="input-template" %]
[% INCLUDE renderInputAlt alt=alt %]
[% END %] [% END %]