From: Michael Tremer Date: Tue, 31 May 2022 16:28:16 +0000 (+0000) Subject: builds: Don't show full job name X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=91de9b42b5439d8394f6e141358df0891fae22f5;p=pbs.git builds: Don't show full job name Signed-off-by: Michael Tremer --- diff --git a/src/templates/build-detail.html b/src/templates/build-detail.html index 95203441..48771a60 100644 --- a/src/templates/build-detail.html +++ b/src/templates/build-detail.html @@ -83,7 +83,7 @@ {% if build.jobs %} - {% module JobsList(build.jobs) %} + {% module JobsList(build.jobs, show_arch_only=True) %} {% end %} {% end block %} diff --git a/src/templates/modules/jobs/list.html b/src/templates/modules/jobs/list.html index f36a3c36..b2332294 100644 --- a/src/templates/modules/jobs/list.html +++ b/src/templates/modules/jobs/list.html @@ -4,7 +4,11 @@ diff --git a/src/web/ui_modules.py b/src/web/ui_modules.py index 9d4d1bb0..ba506dbb 100644 --- a/src/web/ui_modules.py +++ b/src/web/ui_modules.py @@ -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):