]> git.ipfire.org Git - pbs.git/commitdiff
packages: Add sections
authorMichael Tremer <michael.tremer@ipfire.org>
Sun, 30 Apr 2023 16:34:34 +0000 (16:34 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Sun, 30 Apr 2023 16:34:34 +0000 (16:34 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/packages/name.html

index 2d58c560c861f2cedbed8646f6355e83b6698ead..825d2d8bf6d80a4bd4c3716dc2afa2349c6e61ab 100644 (file)
                </ul>
        </nav>
 
-       {% module PackageInfo(package) %}
-
-       {% for distro in backend.distros %}
-               <div class="block">
-                       <h4 class="title is-4">{{ distro }}</h4>
-
-                       {% for repo in distro.repositories %}
-                               {% set builds = repo.get_builds_by_name(package.name) %}
-
-                               {% if builds %}
-                                       <h5 class="subtitle is-5">{{ repo }}</h5>
-
-                                       <div class="columns">
-                                               {% for build in builds %}
-                                                       <div class="column is-2">
-                                                               <a href="/builds/{{ build.uuid }}">
-                                                                       {{ build }}
-                                                               </a>
-
-                                                               {# XXX We would need to add some more information here #}
-                                                               {# e.g. is this build finished/obsolete? #}
-                                                       </div>
-                                               {% end %}
-                                       </div>
+       <section class="section">
+               {% module PackageInfo(package) %}
+       </section>
+
+       <section class="section">
+               {% for distro in backend.distros %}
+                       <div class="block">
+                               <h4 class="title is-4">{{ distro }}</h4>
+
+                               {% for repo in distro.repositories %}
+                                       {% set builds = repo.get_builds_by_name(package.name) %}
+
+                                       {% if builds %}
+                                               <h5 class="subtitle is-5">{{ repo }}</h5>
+
+                                               <div class="columns">
+                                                       {% for build in builds %}
+                                                               <div class="column is-2">
+                                                                       <a href="/builds/{{ build.uuid }}">
+                                                                               {{ build }}
+                                                                       </a>
+
+                                                                       {# XXX We would need to add some more information here #}
+                                                                       {# e.g. is this build finished/obsolete? #}
+                                                               </div>
+                                                       {% end %}
+                                               </div>
+                                       {% end %}
                                {% end %}
-                       {% end %}
-               </div>
-       {% end %}
+                       </div>
+               {% end %}
+       </section>
 
        {% if bugs %}
-               <div class="block">
+               <section class="section">
                        <h4 class="title is-4">{{ _("Open Bugs") }}</h4>
 
                        <div class="buttons are-small">
@@ -58,6 +62,6 @@
                        </div>
 
                        {% module BugsList(bugs) %}
-               </div>
+               </section>
        {% end %}
 {% end block %}