From: Michael Tremer Date: Sun, 29 May 2022 14:20:48 +0000 (+0000) Subject: templates: Add footer X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=70239f2d5b902a0460e9bb026adcbd6648b600c9;p=pbs.git templates: Add footer And remove the old one Signed-off-by: Michael Tremer --- diff --git a/Makefile.am b/Makefile.am index 33a43bd6..1c2859ff 100644 --- a/Makefile.am +++ b/Makefile.am @@ -264,7 +264,6 @@ dist_templates_modules_DATA = \ src/templates/modules/commits-table.html \ src/templates/modules/commit-message.html \ src/templates/modules/files-table.html \ - src/templates/modules/footer.html \ src/templates/modules/jobs-table.html \ src/templates/modules/link-to-user.html \ src/templates/modules/log-entry-comment.html \ diff --git a/src/templates/base.html b/src/templates/base.html index d8e5cf0c..d94a5fb4 100644 --- a/src/templates/base.html +++ b/src/templates/base.html @@ -13,97 +13,111 @@
-
-
-
- {% block container %} -
- {% block body %}EMPTY BODY{% end block %} + {# Main Stuff #} - {% module Footer() %} +
+ {% block container %} +
+ {% block body %}EMPTY BODY{% end block %} +
+ {% end block %}
- {% end block %} + + {# Footer #} + + +
diff --git a/src/templates/modules/footer.html b/src/templates/modules/footer.html deleted file mode 100644 index 58d74359..00000000 --- a/src/templates/modules/footer.html +++ /dev/null @@ -1,7 +0,0 @@ -
- - diff --git a/src/web/__init__.py b/src/web/__init__.py index 4a92f90a..7cf01085 100644 --- a/src/web/__init__.py +++ b/src/web/__init__.py @@ -36,8 +36,6 @@ class Application(tornado.web.Application): "Text" : ui_modules.TextModule, "Modal" : ui_modules.ModalModule, - "Footer" : ui_modules.FooterModule, - # Logging "Log" : ui_modules.LogModule, "LogEntry" : ui_modules.LogEntryModule, diff --git a/src/web/ui_modules.py b/src/web/ui_modules.py index dd3f4ecf..6b225b66 100644 --- a/src/web/ui_modules.py +++ b/src/web/ui_modules.py @@ -101,11 +101,6 @@ class CommitsTableModule(UIModule): full_format=full_format) -class FooterModule(UIModule): - def render(self): - return self.render_string("modules/footer.html") - - class HeadingDateModule(UIModule): def render(self, date): _ = self.locale.translate