diff options
Diffstat (limited to 'app/views/common')
-rw-r--r-- | app/views/common/_left_sidebar.html.erb | 2 | ||||
-rw-r--r-- | app/views/common/_right_sidebar.html.erb | 2 | ||||
-rw-r--r-- | app/views/common/_sidebar_module.html.erb | 5 |
3 files changed, 2 insertions, 7 deletions
diff --git a/app/views/common/_left_sidebar.html.erb b/app/views/common/_left_sidebar.html.erb index 1a55f7e..3cdbe0c 100644 --- a/app/views/common/_left_sidebar.html.erb +++ b/app/views/common/_left_sidebar.html.erb @@ -1,3 +1,3 @@ <div id="left_sidebar"> - <%= render @sidebar_modules.select {|m| m.position == 1} %> + <%= render_sidebar_modules @sidebar_modules.select {|m| m.position == 1} %> </div> diff --git a/app/views/common/_right_sidebar.html.erb b/app/views/common/_right_sidebar.html.erb index 9a40a11..082e4f1 100644 --- a/app/views/common/_right_sidebar.html.erb +++ b/app/views/common/_right_sidebar.html.erb @@ -1,3 +1,3 @@ <div id="right_sidebar"> - <%= render @sidebar_modules.select {|m| m.position == 2} %> + <%= render_sidebar_modules @sidebar_modules.select {|m| m.position == 2} %> </div> diff --git a/app/views/common/_sidebar_module.html.erb b/app/views/common/_sidebar_module.html.erb deleted file mode 100644 index c7a24e9..0000000 --- a/app/views/common/_sidebar_module.html.erb +++ /dev/null @@ -1,5 +0,0 @@ -<div id="sidebar_module_<%= sidebar_module.title %>" class="sidebar_module"> - <h1><%= sidebar_module.title %></h1> - <div><%= content_for "sidebar_module_#{sidebar_module.title}_body" %></div> -</div> - |