]> git.ipfire.org Git - pbs.git/commitdiff
web: Drop unused LogFilesTable module
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 19 Oct 2022 17:38:57 +0000 (17:38 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 19 Oct 2022 17:38:57 +0000 (17:38 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am
src/templates/modules/log-files-table.html [deleted file]
src/web/__init__.py
src/web/ui_modules.py

index db110c179d369df17725d13a263df58e8c5cf70d..5d362e2b5f4d4d2b8cf00dd09593450a7ef90548 100644 (file)
@@ -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 (file)
index 02a1c37..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
-<table class="table table-striped table-hover">
-       <tbody>
-               {% for file in files %}
-                       <tr>
-                               <td>
-                                       <a href="{{ file.download_url }}">{{ file.name }}</a>
-                               </td>
-                               <td>{{ format_size(file.filesize) }}</td>
-                       </tr>
-               {% end %}
-       </tbody>
-</table>
index 067a55bea367c257b142a9cc1fec2eae80a142dd..1f436ee389004d912749fc1941673872311e295c 100644 (file)
@@ -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,
 
index ab6e30cb2c1bb1c2341e73e23f85a239aa9951cb..85a3207306065e35d839082d0a9524b0fc065fd0 100644 (file)
@@ -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",