From: Michael Tremer Date: Mon, 3 Dec 2012 12:14:57 +0000 (+0100) Subject: Fix showing release builds without commit messages. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2cf69d4d0168c421d137391076fdf20f20e0bb8b;p=pbs.git Fix showing release builds without commit messages. --- diff --git a/data/templates/build-detail.html b/data/templates/build-detail.html index 6fbbf80e..c2bb12d9 100644 --- a/data/templates/build-detail.html +++ b/data/templates/build-detail.html @@ -73,13 +73,17 @@

{{ _("Changes") }}

- {% module Text(build.commit.message_full, remove_linebreaks=False) %} - -

- {{ _("Author") }} {% module Maintainer(build.commit.author) %} - ‐ - {{ _("Commit") }} {{ build.pkg.commit.revision[:7] }} -

+ {% if build.commit %} + {% module Text(build.commit.message_full, remove_linebreaks=False) %} + +

+ {{ _("Author") }} {% module Maintainer(build.commit.author) %} + ‐ + {{ _("Commit") }} {{ build.pkg.commit.revision[:7] }} +

+ {% else %} +

{{ _("No commit message.") }}

+ {% end %}