]> git.ipfire.org Git - pbs.git/commitdiff
Drop unused JobsBoxes UI module
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 31 May 2022 16:20:59 +0000 (16:20 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 31 May 2022 16:20:59 +0000 (16:20 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am
src/templates/modules/jobs/boxes.html [deleted file]
src/web/__init__.py
src/web/ui_modules.py

index 95e2eb96dbbe7e9c2ee68b664e9729b2a6009e21..b69c13840e43f86e43f624e29420de020cfeda41 100644 (file)
@@ -295,7 +295,6 @@ dist_templates_modules_changelog_DATA = \
 templates_modules_changelogdir = $(templates_modulesdir)/changelog
 
 dist_templates_modules_jobs_DATA = \
-       src/templates/modules/jobs/boxes.html \
        src/templates/modules/jobs/list.html \
        src/templates/modules/jobs/status.html
 
diff --git a/src/templates/modules/jobs/boxes.html b/src/templates/modules/jobs/boxes.html
deleted file mode 100644 (file)
index 34cb485..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-
-<div class="list-group">
-       {% for j in jobs %}
-               <a href="/job/{{ j.uuid }}" class="list-group-item list-group-item-action flex-column align-itens-start">
-                       <div class="d-flex w-100 justify-content-between">
-                               <h5 class="mb-1">{{ j.arch }}</h5>
-                               {% module JobState(j) %}
-                       </div>
-
-                       <small>{{ format_time(j.duration, shorter=True) }}</small>
-               </a>
-       {% end %}
-</div>
index 6872e154d8be2bfe082260f2251e05bf112205fd..c9a5003822abc94bed1f3685b14e78b505ec405e 100644 (file)
@@ -62,7 +62,6 @@ class Application(tornado.web.Application):
 
                                "CommitMessage"      : ui_modules.CommitMessageModule,
                                "CommitsTable"       : ui_modules.CommitsTableModule,
-                               "JobsBoxes"          : ui_modules.JobsBoxesModule,
                                "JobState"           : ui_modules.JobStateModule,
                                "JobsTable"          : ui_modules.JobsTableModule,
                                "CommentsTable"      : ui_modules.CommentsTableModule,
index 6b225b663d3c5af2cc6f874007667ed65405f52f..9d4d1bb0537c7dd5371a457bf1f170f7472598fc 100644 (file)
@@ -237,15 +237,6 @@ class BuildState(UIModule):
                        return """text-muted font-italic"""
 
 
-class JobsBoxesModule(UIModule):
-       def render(self, build, jobs=None):
-               if jobs is None:
-                       jobs = build.jobs
-
-               return self.render_string("modules/jobs/boxes.html",
-                       build=build, jobs=jobs)
-
-
 class JobStateModule(UIModule):
        def render(self, job, cls=None, show_arch=False, show_icon=False, plain=False):
                state = job.state