]> git.ipfire.org Git - pbs.git/commitdiff
Fix for release builds that are not in a repository.
authorMichael Tremer <michael.tremer@ipfire.org>
Sat, 2 Mar 2013 18:38:22 +0000 (19:38 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Sat, 2 Mar 2013 18:38:22 +0000 (19:38 +0100)
data/templates/modules/changelog/entry.html

index c569f482b2df9e54caf768a0fa253fb9a85d8173..c4a8460f7d93a366a3026a70c57bb78532ec4ceb 100644 (file)
@@ -1,6 +1,6 @@
 <li class="media">
        <div class="media-body">
-               <div class="well {% if build.type == "release" %}well-build-state-{{ build.repo.type }}{% elif build.type == "scratch" %}well-build-type-scratch{% end %}">
+               <div class="well {% if build.type == "release" and build.repo %}well-build-state-{{ build.repo.type }}{% elif build.type == "scratch" %}well-build-type-scratch{% end %}">
                        <h4>
                                <a class="{% if build.is_broken() %}line-through{% end %}" href="/build/{{ build.uuid }}">{{ build.name }}</a>