summaryrefslogtreecommitdiff
path: root/app/helpers/application_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/application_helper.rb')
-rw-r--r--app/helpers/application_helper.rb30
1 files changed, 13 insertions, 17 deletions
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index 2933bd1..45e8228 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -69,13 +69,9 @@ module ApplicationHelper
def page_title
if @page
- if @page.props
- @page.props.title || @page.title
- else
- @page.title
- end
+ @page.title
else
- ""
+ nil
end
end
@@ -85,16 +81,16 @@ module ApplicationHelper
# they call two different 'render' methods (controller and view renders behave differently).
# TODO: figure out how to combine into one helper_method.
#
- def render_page(page)
- begin
- render :template => page.template_path
- rescue ActionView::MissingTemplate => exc
- begin
- render :template => page.template_path(DEFAULT_LOCALE)
- rescue
- raise exc
- end
- end
- end
+ # def render_page(page)
+ # begin
+ # render :template => page.template_path
+ # rescue ActionView::MissingTemplate => exc
+ # begin
+ # render :template => page.template_path(DEFAULT_LOCALE)
+ # rescue
+ # raise exc
+ # end
+ # end
+ # end
end