]> git.ipfire.org Git - pbs.git/commitdiff
builds: Don't show full job name
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 31 May 2022 16:28:16 +0000 (16:28 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 31 May 2022 16:28:16 +0000 (16:28 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/build-detail.html
src/templates/modules/jobs/list.html
src/web/ui_modules.py

index 95203441f9e959c46db68e6c34d1c310e64bba1e..48771a60704caf5c4a4ee1632513eeb1ab546e91 100644 (file)
@@ -83,7 +83,7 @@
        </a>
 
        {% if build.jobs %}
-               {% module JobsList(build.jobs) %}
+               {% module JobsList(build.jobs, show_arch_only=True) %}
        {% end %}
 {% end block %}
 
index f36a3c369a6301c094146a702d5fe3f24d16d310..b2332294e617f5bbf827416966e6dcd746b3903f 100644 (file)
@@ -4,7 +4,11 @@
                        <div class="cell medium-5">
                                <h5>
                                        <a href="/build/{{ job.build.uuid }}">
-                                               {{ job }}
+                                               {% if show_arch_only %}
+                                                       {{ job.arch }}
+                                               {% else %}
+                                                       {{ job }}
+                                               {% end %}
                                        </a>
                                </h5>
                        </div>
index 9d4d1bb0537c7dd5371a457bf1f170f7472598fc..ba506dbb32e18685fbefbb110f43c21248a872a3 100644 (file)
@@ -312,8 +312,9 @@ class JobsTableModule(UIModule):
 
 
 class JobsListModule(UIModule):
-       def render(self, jobs):
-               return self.render_string("modules/jobs/list.html", jobs=jobs)
+       def render(self, jobs, show_arch_only=False):
+               return self.render_string("modules/jobs/list.html", jobs=jobs,
+                       show_arch_only=show_arch_only)
 
 
 class RepositoryTableModule(UIModule):