From: Michael Tremer Date: Mon, 28 Dec 2020 19:26:30 +0000 (+0000) Subject: blog: Drop unused post module X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9491eb760df35ec7485b34e4fc8dc31fe15391d7;p=ipfire.org.git blog: Drop unused post module Signed-off-by: Michael Tremer --- diff --git a/Makefile.am b/Makefile.am index 1245669c..9b844b46 100644 --- a/Makefile.am +++ b/Makefile.am @@ -161,8 +161,7 @@ templates_blog_messagesdir = $(templates_blogdir)/messages templates_blog_modules_DATA = \ src/templates/blog/modules/history-navigation.html \ src/templates/blog/modules/list.html \ - src/templates/blog/modules/post.html \ - src/templates/blog/modules/posts.html + src/templates/blog/modules/post.html templates_blog_modulesdir = $(templates_blogdir)/modules diff --git a/src/templates/blog/modules/posts.html b/src/templates/blog/modules/posts.html deleted file mode 100644 index f4f4f87c..00000000 --- a/src/templates/blog/modules/posts.html +++ /dev/null @@ -1,3 +0,0 @@ -{% for i, post in enumerate(posts) %} - {% module BlogPost(post) %} -{% end %} diff --git a/src/web/__init__.py b/src/web/__init__.py index 9d87c7ea..6b529d39 100644 --- a/src/web/__init__.py +++ b/src/web/__init__.py @@ -62,7 +62,6 @@ class Application(tornado.web.Application): "BlogHistoryNavigation": blog.HistoryNavigationModule, "BlogList" : blog.ListModule, "BlogPost" : blog.PostModule, - "BlogPosts" : blog.PostsModule, # Boot "BootMenuConfig" : boot.MenuConfigModule, diff --git a/src/web/blog.py b/src/web/blog.py index 3ae550a1..bc2c9923 100644 --- a/src/web/blog.py +++ b/src/web/blog.py @@ -257,8 +257,3 @@ class ListModule(ui_modules.UIModule): class PostModule(ui_modules.UIModule): def render(self, post): return self.render_string("blog/modules/post.html", post=post) - - -class PostsModule(ui_modules.UIModule): - def render(self, posts): - return self.render_string("blog/modules/posts.html", posts=list(posts))