]> git.ipfire.org Git - pbs.git/commitdiff
builds: Link to build groups
authorMichael Tremer <michael.tremer@ipfire.org>
Fri, 12 May 2023 10:34:18 +0000 (10:34 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Fri, 12 May 2023 10:34:18 +0000 (10:34 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/builds/groups/modules/list.html

index 9f14c7fb3c98b19f205dbab889414f4c1242bbfb..9bc7229b42c296fc9e99b534a9b30372b5b24191 100644 (file)
                </span>
        </p>
 
-       {% for build in group %}
+       {% for i, build in enumerate(group) %}
+               {# Don't show more than limit builds #}
+               {% if limit and i >= limit %}
+                       {% break %}
+               {% end %}
+
                <a class="panel-block" href="/builds/{{ build.uuid }}">
                        {% if build.has_failed() %}
                                <span class="panel-icon has-text-danger">
@@ -54,7 +59,7 @@
        {# Show a button to see all builds in this group #}
        {% if limit and limit < len(group) %}
                {# XXX needs styling #}
-               <a class="panel-block" href="/builds/groups/{{ group.uuid }}">
+               <a class="panel-block is-justify-content-center" href="/builds/groups/{{ group.uuid }}">
                        {{ _("Show all") }}
                </a>
        {% end %}