lib/generators/scrivito/install/templates/app/views/page/index.html.erb in scrivito_sdk-0.66.0 vs lib/generators/scrivito/install/templates/app/views/page/index.html.erb in scrivito_sdk-0.70.0.rc1
- old
+ new
@@ -1,14 +1,14 @@
<div>
- <p><%= link_to 'Home', scrivito_path(Obj.homepage) %></p>
+ <p><%= link_to 'Home', scrivito_path(Obj.root) %></p>
- <%= scrivito_tag_list :ul, Obj.homepage, :toclist do |list, page| %>
+ <%= scrivito_tag_list :ul, Obj.root, :toclist do |list, page| %>
<%= list.tag :li do %>
<%= link_to page.display_title, scrivito_path(page) %>
<% end %>
<% end %>
- <% if Obj.homepage.toclist.empty? && scrivito_in_editable_view? %>
+ <% if Obj.root.toclist.empty? && scrivito_in_editable_view? %>
<p>(Hint: Click on the Scrivito icon to the right to create the first subpage.)</p>
<% end %>
</div>
<%= scrivito_tag :h1, @obj, :title %>