]> git.ipfire.org Git - ipfire.org.git/commitdiff
blog: Drop unused post module
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 28 Dec 2020 19:26:30 +0000 (19:26 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 28 Dec 2020 19:26:30 +0000 (19:26 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Makefile.am
src/templates/blog/modules/posts.html [deleted file]
src/web/__init__.py
src/web/blog.py

index 1245669cea34631be25d69bdab46d7bd8bb51eae..9b844b46720d3c04accc7bf51160637e05d1d1cd 100644 (file)
@@ -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 (file)
index f4f4f87..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-{% for i, post in enumerate(posts) %}
-    {% module BlogPost(post) %}
-{% end %}
index 9d87c7eaa434b92b098215932bdfaa5ac1dd3dc7..6b529d39fecd023ae4ee15f24d0d5e02ba133755 100644 (file)
@@ -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,
index 3ae550a1908f18ff2b423cec8f0a3222599831f0..bc2c99239fd86573a010c2aaadee0d6265030150 100644 (file)
@@ -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))