]> git.ipfire.org Git - people/jschlag/pbs.git/commitdiff
Fix showing release builds without commit messages.
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 3 Dec 2012 12:14:57 +0000 (13:14 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 3 Dec 2012 12:14:57 +0000 (13:14 +0100)
data/templates/build-detail.html

index 6fbbf80edf0bdf8070a409a4bc1a3af50f547480..c2bb12d9a4450707b1884bff0f5725ede04962c9 100644 (file)
                        <div class="{% if bugs %}span6{% else %}span10{% end %}">
                                <h4>{{ _("Changes") }}</h4>
 
-                               {% module Text(build.commit.message_full, remove_linebreaks=False) %}
-
-                               <p class="muted pull-right">
-                                       {{ _("Author") }} {% module Maintainer(build.commit.author) %}
-                                       &dash;
-                                       {{ _("Commit") }} <a href="/distro/{{ build.distro.identifier }}/source/{{ build.pkg.commit.source.identifier }}/{{ build.pkg.commit.revision }}">{{ build.pkg.commit.revision[:7] }}</a>
-                               </p>
+                               {% if build.commit %}
+                                       {% module Text(build.commit.message_full, remove_linebreaks=False) %}
+
+                                       <p class="muted pull-right">
+                                               {{ _("Author") }} {% module Maintainer(build.commit.author) %}
+                                               &dash;
+                                               {{ _("Commit") }} <a href="/distro/{{ build.distro.identifier }}/source/{{ build.pkg.commit.source.identifier }}/{{ build.pkg.commit.revision }}">{{ build.pkg.commit.revision[:7] }}</a>
+                                       </p>
+                               {% else %}
+                                       <p class="muted">{{ _("No commit message.") }}</p>
+                               {% end %}
 
                                <hr class="clear visible-phone">
                        </div>