diff options
Diffstat (limited to 'app/helpers')
-rw-r--r-- | app/helpers/sidebar_helper.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/helpers/sidebar_helper.rb b/app/helpers/sidebar_helper.rb index f9d4834..e8e076a 100644 --- a/app/helpers/sidebar_helper.rb +++ b/app/helpers/sidebar_helper.rb @@ -12,4 +12,9 @@ module SidebarHelper render m.to_partial_path, :sidebar_module => m }.join().html_safe end + + def page_has_side_body?(page) + part = page.part_with_title("Side Body") + return part.present? && !part.body.empty? + end end |