From e0c411220e8ef6e2ebdb2e25e1a23bb49256154b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra <eelco.dolstra@logicblox.com> Date: Fri, 24 May 2013 12:43:31 -0400 Subject: [PATCH] built.tt: Handle the case where the original build is not known And remove some parentheses. --- src/root/build.tt | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/root/build.tt b/src/root/build.tt index 9da054fc..6dfc209c 100644 --- a/src/root/build.tt +++ b/src/root/build.tt @@ -143,7 +143,7 @@ [% IF build.iscachedbuild %] <tr> <th>Cached from:</th> - <td>[% INCLUDE renderFullBuildLink build=cachedBuild %]</td> + <td>[% IF cachedBuild; INCLUDE renderFullBuildLink build=cachedBuild; ELSE %]<em>unknown</em>[% END %]</td> </tr> [% END %] [% IF build.finished %] @@ -266,23 +266,23 @@ </tr> <tr> <th>Short description:</th> - <td>[% IF build.description %][% HTML.escape(build.description) %][% ELSE %]<em>(not given)</em>[% END %]</td> + <td>[% IF build.description %][% HTML.escape(build.description) %][% ELSE %]<em>not given</em>[% END %]</td> </tr> <tr> <th>Long description:</th> - <td>[% IF build.longdescription %][% HTML.escape(build.longdescription) %][% ELSE %]<em>(not given)</em>[% END %]</td> + <td>[% IF build.longdescription %][% HTML.escape(build.longdescription) %][% ELSE %]<em>not given</em>[% END %]</td> </tr> <tr> <th>License:</th> - <td>[% IF build.license %][% HTML.escape(build.license) %][% ELSE %]<em>(not given)</em>[% END %]</td> + <td>[% IF build.license %][% HTML.escape(build.license) %][% ELSE %]<em>not given</em>[% END %]</td> </tr> <tr> <th>Homepage:</th> - <td>[% IF build.homepage %]<a [% HTML.attributes(href => build.homepage) %]>[% HTML.escape(build.homepage) %]</a>[% ELSE %]<em>(not given)</em>[% END %]</td> + <td>[% IF build.homepage %]<a [% HTML.attributes(href => build.homepage) %]>[% HTML.escape(build.homepage) %]</a>[% ELSE %]<em>not given</em>[% END %]</td> </tr> <tr> <th>Maintainer(s):</th> - <td>[% IF build.maintainers %][% HTML.escape(build.maintainers) %][% ELSE %]<em>(not given)</em>[% END %]</td> + <td>[% IF build.maintainers %][% HTML.escape(build.maintainers) %][% ELSE %]<em>not given</em>[% END %]</td> </tr> <tr> <th>System:</th>