Set editable parts
This commit is contained in:
1 parent
c7fc7084d5
commit
dda4b30d67
3 files changed
+3
-3
No files matched your search
+1
-1
@@ -52,7 +52,7 @@ namespace :dev do
|
||||
|
||||
layout = Layout.create!( :name => 'root', :description => 'root', :content => File.open("#{RAILS_ROOT}/lib/template/root.layout").read )
|
||||
layout.layout_parts.create!( :name => 'header', :content => File.open("#{RAILS_ROOT}/lib/template/nav.snippet").read )
|
||||
layout.layout_parts.create!( :name => 'main_content' )
|
||||
layout.layout_parts.create!( :name => 'main_content', :editable => true )
|
||||
layout.layout_parts.create!( :name => 'footer', :content => File.open("#{RAILS_ROOT}/lib/template/footer.snippet").read )
|
||||
|
||||
home = Page.create!( :i18n_variable_id => var_10.id, :layout_id => layout.id, :name => 'home', :is_published => true )
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
<r:snippet name='nav' />
|
||||
</r:layout_part>
|
||||
|
||||
<r:layout_part name="main_content">
|
||||
<r:layout_part name="main_content" editable="true">
|
||||
</r:layout_part>
|
||||
|
||||
<r:layout_part name="footer">
|
||||
|
||||
Reference in new issue
Block a user