From db77c4024dd903bb000c51bfc67d5935233a803a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dario=20B=C3=B6sch?= Date: Fri, 22 May 2015 14:04:00 +0200 Subject: [PATCH] created blog.scss, added link to blogs/{user} Later we will list all posts of a user under the route blogs/{user} --- examples/demo/modules/blog/cms_blog_module.e | 2 +- .../demo/modules/blog/handler/blog_handler.e | 10 +++-- .../site/themes/bootstrap/assets/css/blog.css | 25 +++++++++++ .../site/themes/bootstrap/assets/css/node.css | 44 +++---------------- .../themes/bootstrap/assets/scss/blog.scss | 30 +++++++++++++ .../themes/bootstrap/assets/scss/node.scss | 22 +++++++--- examples/demo/site/themes/bootstrap/page.tpl | 4 ++ 7 files changed, 87 insertions(+), 50 deletions(-) create mode 100644 examples/demo/site/themes/bootstrap/assets/css/blog.css create mode 100644 examples/demo/site/themes/bootstrap/assets/scss/blog.scss diff --git a/examples/demo/modules/blog/cms_blog_module.e b/examples/demo/modules/blog/cms_blog_module.e index d247566..f2e795d 100644 --- a/examples/demo/modules/blog/cms_blog_module.e +++ b/examples/demo/modules/blog/cms_blog_module.e @@ -119,7 +119,7 @@ configure_web (a_api: CMS_API; a_node_api: CMS_BLOG_API; a_router: WSF_ROUTER) a_router.map_with_request_methods (l_uri_mapping, a_router.methods_get) -- We can add a page number after /blogs/ to get older posts - a_router.handle_with_request_methods ("/blogs/{page}", l_blog_handler, a_router.methods_get) + a_router.handle_with_request_methods ("/blogs/page/{page}", l_blog_handler, a_router.methods_get) end diff --git a/examples/demo/modules/blog/handler/blog_handler.e b/examples/demo/modules/blog/handler/blog_handler.e index 4498368..f23f0c0 100644 --- a/examples/demo/modules/blog/handler/blog_handler.e +++ b/examples/demo/modules/blog/handler/blog_handler.e @@ -102,7 +102,7 @@ feature -- HTTP Methods if attached node_api.blogs_order_created_desc_limited (entries_per_page, (page_number-1) * entries_per_page) as lst then -- List all posts of the blog - s.append ("