diff --git a/src/root/common.tt b/src/root/common.tt index 9bd21fc3..2493f3e3 100644 --- a/src/root/common.tt +++ b/src/root/common.tt @@ -1,9 +1,9 @@ -[% USE date %] -[% USE String %] -[% USE HTML %] +[%- USE date -%] +[%- USE String -%] +[%- USE HTML -%] -[% inputTypes = +[%- inputTypes = { "svn" = "Subversion export" , "svn-checkout" = "Subversion checkout" , "bzr" = "Bazaar export" @@ -17,46 +17,46 @@ , "build" = "Build output" , "sysbuild" = "Build output (same system)" } -%] +-%] -[% BLOCK renderDateTime %] +[%- BLOCK renderDateTime -%] [% date.format(timestamp, '%Y-%m-%d %H:%M:%S') -%] -[% END %] +[%- END -%] -[% BLOCK renderProjectName -%] +[%- BLOCK renderProjectName -%] [% project %][% END -%] -[% BLOCK renderJobsetName -%] +[%- BLOCK renderJobsetName -%] [% jobset %][% END -%] -[% BLOCK renderJobName -%] +[%- BLOCK renderJobName -%] [% job %][% END -%] -[% BLOCK renderFullJobsetName %] +[%- BLOCK renderFullJobsetName -%] [% INCLUDE renderProjectName %]:[% INCLUDE renderJobsetName %] [% END %] -[% BLOCK renderFullJobName %] +[%- BLOCK renderFullJobName -%] [% INCLUDE renderProjectName %]:[% INCLUDE renderJobsetName %]:[% INCLUDE renderJobName %] [% END %] -[% BLOCK renderFullJobNameOfBuild %] +[%- BLOCK renderFullJobNameOfBuild -%] [% INCLUDE renderFullJobName project=build.get_column("project") jobset = build.get_column("jobset") job = build.get_column("job") %] [% END %] -[% BLOCK renderDuration -%] +[%- BLOCK renderDuration -%] [% IF duration >= 24 * 60 * 60 %][% duration div (24 * 60 * 60) %]d[% END %] [% IF duration >= 60 * 60 %][% duration div (60 * 60) % 24 %]h[% END %] [% IF duration >= 60 %][% duration div 60 % 60 %]m[% END %] @@ -64,79 +64,77 @@ [% END %] -[% BLOCK renderBuildList %] +[%- BLOCK renderBuildList -%]
[% END %] | # | - [% IF showSchedulingInfo %] + [%- IF showSchedulingInfo -%]P | - [% END %] + [%- END -%]Job | Release Name | System | Timestamp | - [% IF showStatusChange %] + [%- IF showStatusChange -%]Last status change | - [% END %] - [% IF showDescription %] + [%- END -%] + [%- IF showDescription -%]Description | - [% END %] + [%- END -%]||
---|---|---|---|---|---|---|---|---|---|---|
- [% INCLUDE renderBuildStatusIcon size=16 busy=(showSchedulingInfo ? 1 : 0) buildstatus=build.get_column('buildStatus') %] + [%- INCLUDE renderBuildStatusIcon size=16 busy=(showSchedulingInfo ? 1 : 0) buildstatus=build.get_column('buildStatus') -%] | - [% END %] + [%- END -%][% build.id %] | - [% IF showSchedulingInfo %] + [%- IF showSchedulingInfo -%][% IF build.get_column('busy') %][% ELSIF build.get_column('disabled') == 1 || build.get_column('enabled') == 0 %]Disabled[% END %] | [% build.get_column('priority') %] | - [% END %] -- [% INCLUDE renderFullJobNameOfBuild %] - | + [%- END -%] +[%- INCLUDE renderFullJobNameOfBuild -%] | [% !showSchedulingInfo and build.get_column('releasename') ? build.get_column('releasename') : build.nixname %] | [% build.system %] | [% date.format(build.timestamp, '%Y-%m-%d %H:%M:%S') %] | - [% IF showStatusChange %] + [%- IF showStatusChange -%]- [% IF build.get_column('statusChangeTime') %] + [%- IF build.get_column('statusChangeTime') -%] [% date.format(build.get_column('statusChangeTime'), '%Y-%m-%d %H:%M:%S') %] - [% ELSE %] + [%- ELSE -%] never - [% END %] + [%- END -%] | - [% END %] - [% IF showDescription %] + [%- END -%] + [%- IF showDescription -%][% build.description %] | - [% END -%] + [%- END -%]