From 6ca3b3a6abfc9fb508b337d27e683bf8a76400c3 Mon Sep 17 00:00:00 2001 From: Harald Eilertsen Date: Mon, 23 Dec 2013 15:33:21 +0100 Subject: Add sidebar_module partial and SidebarPostDecorator class. Also did some code cleanup in PagesControllerDecorator::populate_sidebars. The controller will now populate left and right sidebars (only left for now,) while the SidebarPostDecorator will provide the markup for each post that is to be shown in a sidebar. The plan is to further expand the system with other Sidebar- Decorators, so each item can be rendered using the same in the partial. --- app/views/common/_left_sidebar.html.erb | 9 +-------- app/views/common/_sidebar_module.html.erb | 10 ++++++++++ 2 files changed, 11 insertions(+), 8 deletions(-) create mode 100644 app/views/common/_sidebar_module.html.erb (limited to 'app/views') diff --git a/app/views/common/_left_sidebar.html.erb b/app/views/common/_left_sidebar.html.erb index bf3b3a8..968f1fa 100644 --- a/app/views/common/_left_sidebar.html.erb +++ b/app/views/common/_left_sidebar.html.erb @@ -1,10 +1,3 @@ diff --git a/app/views/common/_sidebar_module.html.erb b/app/views/common/_sidebar_module.html.erb new file mode 100644 index 0000000..41f51e7 --- /dev/null +++ b/app/views/common/_sidebar_module.html.erb @@ -0,0 +1,10 @@ + <% modules.keys.each do |c| -%> + + <% end -%> + -- cgit v1.2.3