]> git.ipfire.org Git - pbs.git/commitdiff
builds: Move bug list into the header
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 12 May 2023 23:28:16 +0000 (23:28 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 12 May 2023 23:28:16 +0000 (23:28 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/builds/show.html

index 553375bfa135e36764465f88ffd60631d08d1331..16b15601aac5c1d4319728d9988da14d474f6134 100644 (file)
 
                                <div class="columns">
                                        <div class="column">
-                                               <div class="media">
-                                                       {# Scratch Build #}
-                                                       {% if build.owner %}
-                                                               {% if build.message %}
-                                                                       {% module Text(build.message) %}
-                                                               {% else %}
-                                                                       <p class="has-text-centered p-5">
-                                                                               {{ _("No Message") }}
-                                                                       </p>
-                                                               {% end %}
-
-                                                       {# Commit Message #}
-                                                       {% elif build.commit %}
-                                                               {% module CommitMessage(build.commit) %}
-
+                                               {# Scratch Build #}
+                                               {% if build.owner %}
+                                                       {% if build.message %}
+                                                               {% module Text(build.message) %}
+                                                       {% else %}
+                                                               <p class="has-text-centered p-5">
+                                                                       {{ _("No Message") }}
+                                                               </p>
                                                        {% end %}
-                                               </div>
+
+                                               {# Commit Message #}
+                                               {% elif build.commit %}
+                                                       {% module CommitMessage(build.commit) %}
+
+                                               {% end %}
+
+                                               {# Bugs #}
+                                               {% if bugs %}
+                                                       <h5 class="title is-5">{{ _("Fixed Bugs") }}</h5>
+
+                                                       {% module BugsList(bugs) %}
+                                               {% end %}
                                        </div>
 
                                        <div class="column is-3">
                </div>
        </section>
 
-       {# List any fixed bugs #}
-       {% if bugs %}
-               <section class="section">
-                       <div class="container">
-                               <h5 class="title is-5">{{ _("Fixed Bugs") }}</h5>
-
-                               {% module BugsList(bugs) %}
-                       </div>
-               </section>
-       {% end %}
-
        {% if build.jobs %}
                <section class="section">
                        <div class="container">