[% WRAPPER layout.tt title=(edit ? (create ? "New Project" : "Editing Project ‘$project.name’") : "Project ‘$project.name’") %] [% PROCESS common.tt %] [% IF create %]

New Project

[% ELSE %]

Project [% project.name %]

[% END %]
[% IF !edit %]

Jobsets

[% IF project.jobsets.size > 0 %]

This project has the following jobsets:

[% IF c.check_user_roles('admin') %][% END%] [% FOREACH j IN jobsets %] [% IF j.get_column('nrtotal') > 0 %] [% successrate = ( j.get_column('nrsucceeded') / j.get_column('nrtotal') )*100 %] [% IF j.get_column('nrscheduled') > 0 %] [% class = '' %] [% ELSIF successrate < 25 %] [% class = 'red' %] [% ELSIF successrate < 75 %] [% class = 'orange' %] [% ELSIF successrate <= 100 %] [% class = 'green' %] [% END %] [% END %] [% IF c.check_user_roles('admin') %] [% END%] [% END %]
Id Description Last evaluated SuccessOptions
[% IF j.get_column('nrscheduled') > 0 %] Scheduled [% ELSIF j.get_column('nrfailed') == 0 %] Succeeded [% ELSIF j.get_column('nrfailed') > 0 && j.get_column('nrsucceeded') > 0 %] Some Failed [% ELSE %] All Failed [% END %] [% INCLUDE renderJobsetName project = project.name jobset = j.name %] [% HTML.escape(j.description) %] [% INCLUDE renderDateTime timestamp = j.lastcheckedtime %]
[% successrate FILTER format('%d') %]%
[% IF j.get_column('nrscheduled') > 0 %] [% j.get_column('nrscheduled') %] builds still running [% END %]
[% j.get_column('nrsucceeded') %]/[% j.get_column('nrtotal') %]
[ [% INCLUDE maybeLink uri = c.uri_for(c.controller('Admin').action_for('force_eval'), project.name, j.name) content = "Evaluate" confirmmsg = ("Are you sure you want to force evaluation of jobset " _ project.name _ ":" _ j.name _ "?") %] | [% IF j.hidden %] [% INCLUDE maybeLink uri = c.uri_for('/jobset' project.name j.name 'unhide') content = "Unhide" %] [% ELSE %] [% INCLUDE maybeLink uri = c.uri_for('/jobset' project.name j.name 'hide') content = "Hide" %] [% END %] ]
[% ELSE %]

No jobsets have been defined yet.

[% END %]

[Create a new jobset]

[% END %]
[% IF edit %]
[% END %]

Information[% IF !edit %] [Edit][% END %]

[% IF edit %] [% END %]
Identifier: [% INCLUDE maybeEditString param="name" value=project.name %]
Display name: [% INCLUDE maybeEditString param="displayname" value=project.displayname %]
Description: [% INCLUDE maybeEditString param="description" value=project.description %]
Homepage: [% IF edit %] [% INCLUDE maybeEditString param="homepage" value=project.homepage %] [% ELSE %] [% IF project.homepage %] project.homepage) %]>[% HTML.escape(project.homepage) %] [% ELSE %] (not specified) [% END %] [% END %]
Owner: [% INCLUDE maybeEditString param="owner" value=(project.owner.username || c.user.username) edit=(edit && c.check_user_roles('admin')) %]
Enabled: [% INCLUDE renderSelection param="enabled" curValue=project.enabled options={"1" = "Yes", "0" = "No"} %]
[% IF edit %]

[% IF !create %]

[% END %] [% END %]
[% IF !edit %]

Views

[% IF views.size > 0 %]

Project [% project.name %] has the following views:

[% ELSE %]

Project [% project.name %] has no views.

[% END %]

[Create a new view]

Channels

This project provides the following Nix channels:

[%#

Statistics

[% INCLUDE showBuildStats % ]
%] [% END %]
[% END %]