From e0c411220e8ef6e2ebdb2e25e1a23bb49256154b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra 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 %] Cached from: - [% INCLUDE renderFullBuildLink build=cachedBuild %] + [% IF cachedBuild; INCLUDE renderFullBuildLink build=cachedBuild; ELSE %]unknown[% END %] [% END %] [% IF build.finished %] @@ -266,23 +266,23 @@ Short description: - [% IF build.description %][% HTML.escape(build.description) %][% ELSE %](not given)[% END %] + [% IF build.description %][% HTML.escape(build.description) %][% ELSE %]not given[% END %] Long description: - [% IF build.longdescription %][% HTML.escape(build.longdescription) %][% ELSE %](not given)[% END %] + [% IF build.longdescription %][% HTML.escape(build.longdescription) %][% ELSE %]not given[% END %] License: - [% IF build.license %][% HTML.escape(build.license) %][% ELSE %](not given)[% END %] + [% IF build.license %][% HTML.escape(build.license) %][% ELSE %]not given[% END %] Homepage: - [% IF build.homepage %] build.homepage) %]>[% HTML.escape(build.homepage) %][% ELSE %](not given)[% END %] + [% IF build.homepage %] build.homepage) %]>[% HTML.escape(build.homepage) %][% ELSE %]not given[% END %] Maintainer(s): - [% IF build.maintainers %][% HTML.escape(build.maintainers) %][% ELSE %](not given)[% END %] + [% IF build.maintainers %][% HTML.escape(build.maintainers) %][% ELSE %]not given[% END %] System: