aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/common
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@andeuin.net>2014-02-06 23:53:45 +0100
committerHarald Eilertsen <haraldei@andeuin.net>2014-02-06 23:53:45 +0100
commitcd29f12cf546d3afa883ce8e67eb9d5347875714 (patch)
treeaf5a1b9c589e5d0efe1866fe93d1493adb16e2d1 /app/views/common
parenteef973923042a20d90dd66fa653bd97e12126780 (diff)
downloadhmnoweb-cd29f12cf546d3afa883ce8e67eb9d5347875714.tar.gz
hmnoweb-cd29f12cf546d3afa883ce8e67eb9d5347875714.tar.bz2
hmnoweb-cd29f12cf546d3afa883ce8e67eb9d5347875714.zip
Make sidebars nicer.
- Module headings now go all the way out. - Side body content is included like a module only if not empty.
Diffstat (limited to 'app/views/common')
-rw-r--r--app/views/common/_right_sidebar.html.erb7
1 files changed, 6 insertions, 1 deletions
diff --git a/app/views/common/_right_sidebar.html.erb b/app/views/common/_right_sidebar.html.erb
index 023730d..3b17356 100644
--- a/app/views/common/_right_sidebar.html.erb
+++ b/app/views/common/_right_sidebar.html.erb
@@ -1,5 +1,10 @@
<div id="right_sidebar">
- <%= raw @page.content_for(:side_body) %>
+ <% unless @page.part_with_title("Side Body").body.empty? %>
+ <div class="sidebar_module">
+ <h1>Sjefen melder</h1>
+ <div class="inner"><%= raw @page.content_for(:side_body) %></div>
+ </div>
+ <% end %>
<%= render_sidebar_modules @sidebar_modules, :position => 2 %>
<%= render "/refinery/blog/shared/rss_feed" %>
<%= render "/refinery/blog/shared/categories" %>