From: Michael Tremer Date: Wed, 19 Oct 2022 17:38:57 +0000 (+0000) Subject: web: Drop unused LogFilesTable module X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bd986299411231cd45772ffdece7ca252f35a477;p=pbs.git web: Drop unused LogFilesTable module Signed-off-by: Michael Tremer --- diff --git a/Makefile.am b/Makefile.am index db110c17..5d362e2b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -256,7 +256,6 @@ dist_templates_modules_DATA = \ src/templates/modules/commits-table.html \ src/templates/modules/commit-message.html \ src/templates/modules/link-to-user.html \ - src/templates/modules/log-files-table.html \ src/templates/modules/modal-base.html \ src/templates/modules/modal-build-comment.html \ src/templates/modules/modal-build-push.html \ diff --git a/src/templates/modules/log-files-table.html b/src/templates/modules/log-files-table.html deleted file mode 100644 index 02a1c37f..00000000 --- a/src/templates/modules/log-files-table.html +++ /dev/null @@ -1,12 +0,0 @@ - - - {% for file in files %} - - - - - {% end %} - -
- {{ file.name }} - {{ format_size(file.filesize) }}
diff --git a/src/web/__init__.py b/src/web/__init__.py index 067a55be..1f436ee3 100644 --- a/src/web/__init__.py +++ b/src/web/__init__.py @@ -74,7 +74,6 @@ class Application(tornado.web.Application): "CommitsTable" : ui_modules.CommitsTableModule, "JobState" : ui_modules.JobStateModule, "LinkToUser" : ui_modules.LinkToUserModule, - "LogFilesTable" : ui_modules.LogFilesTableModule, "PackageFilesTable" : ui_modules.PackageFilesTableModule, "SourceTable" : ui_modules.SourceTableModule, diff --git a/src/web/ui_modules.py b/src/web/ui_modules.py index ab6e30cb..85a32073 100644 --- a/src/web/ui_modules.py +++ b/src/web/ui_modules.py @@ -111,12 +111,6 @@ class HeadingDateModule(UIModule): return self.locale.format_date(date, shorter=True, relative=False) -class LogFilesTableModule(UIModule): - def render(self, job, files): - return self.render_string("modules/log-files-table.html", job=job, - files=files) - - class PackageFilesTableModule(UIModule): def render(self, pkg, filelist): return self.render_string("modules/packages-files-table.html",