Compare commits

..

1 Commits
0.2.1 ... 0.2.2

Author SHA1 Message Date
Rohan Mitchell
9fbcd8c01b Display CMS pages with Spree's layout 2012-10-12 10:21:21 +11:00
2 changed files with 8 additions and 14 deletions

View File

@@ -1,14 +1 @@
<!DOCTYPE html>
<html>
<head>
<title>Openfoodweb</title>
<%= stylesheet_link_tag "application" %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tags %>
</head>
<body>
<%= yield %>
</body>
</html>
<%= render :file => 'spree/layouts/spree_application' %>

View File

@@ -118,3 +118,10 @@ ComfortableMexicanSofa::HttpAuth.password = 'password'
# ComfortableMexicanSofa::ViewHooks.add(:html_head, '/layouts/admin/html_head')
# ComfortableMexicanSofa::ViewHooks.add(:page_form, '/layouts/admin/page_form')
ComfortableMexicanSofa::ViewHooks.add(:navigation, 'layouts/cms_nav_spree')
# Provide some Spree helpers to the CMS controller so it can render Spree's layout
ComfortableMexicanSofa::CmsContentController.class_eval do
helper 'spree/base'
include Spree::Core::ControllerHelpers
include Spree::Core::Engine.routes.url_helpers
end