From fcc305b89b647e288a9e081a65f6cdc1e87596f7 Mon Sep 17 00:00:00 2001 From: Jacques Crocker Date: Fri, 23 Jul 2010 16:58:10 -0700 Subject: [PATCH] Add html safe view for layout's title --- app/views/admin/contents/new.html.haml | 2 +- app/views/layouts/admin/application.html.haml | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/app/views/admin/contents/new.html.haml b/app/views/admin/contents/new.html.haml index bd0f7084..d3befe1d 100644 --- a/app/views/admin/contents/new.html.haml +++ b/app/views/admin/contents/new.html.haml @@ -1,4 +1,4 @@ -- title t('.title', :type => @content_type.name.capitalize).html_safe +- title t('.title', :type => @content_type.name.capitalize) - content_for :submenu do = render 'admin/shared/menu/contents' diff --git a/app/views/layouts/admin/application.html.haml b/app/views/layouts/admin/application.html.haml index e11440b8..b9a6d287 100644 --- a/app/views/layouts/admin/application.html.haml +++ b/app/views/layouts/admin/application.html.haml @@ -9,19 +9,19 @@ #header = render 'admin/shared/header' = render 'admin/shared/menu' - + #submenu = yield :submenu - + #content .inner - %h2= title - + %h2!= title + #local-actions-bar   = yield :buttons - + = yield - + #footer = render 'admin/shared/footer' \ No newline at end of file