From 25e3ce14fd9020d01898d5fcdcb81ad3bd1b9d86 Mon Sep 17 00:00:00 2001 From: Braulio Bhavamitra Date: Mon, 11 Nov 2013 13:00:21 -0300 Subject: [PATCH] Add getter for current layout template --- app/helpers/layout_helper.rb | 4 ++++ 1 file changed, 4 insertions(+), 0 deletions(-) diff --git a/app/helpers/layout_helper.rb b/app/helpers/layout_helper.rb index 0025ab9..126e855 100644 --- a/app/helpers/layout_helper.rb +++ b/app/helpers/layout_helper.rb @@ -84,6 +84,10 @@ module LayoutHelper theme_path + '/style.css' end + def layout_template + if profile then profile.layout_template else environment.layout_template end + end + def addthis_javascript if NOOSFERO_CONF['addthis_enabled'] '' -- libgit2 0.21.2