<%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| %> <%% unless <%= singular_table_name %>.menu.blank? %> <%% end %> <%% if <%= singular_table_name %>.respond_to?(:blocks) %> <%% end %> <%% if <%= singular_table_name %>.respond_to?(:teaser) %> <%% end %> <%% unless <%= singular_table_name %>.menu.blank? %> <%% end %>
Page Template Actions
<%%= link_to <%= singular_table_name %>.title, [:admin, <%= singular_table_name %>], :target => "_blank" %> <%%= link_to 'Edit', edit_admin_<%= singular_table_name %>_path(<%= singular_table_name %>) %> <%%= link_to 'Destroy', [:admin, <%= singular_table_name %>], :confirm => 'Are you sure?', :method => :delete %>
Template: <%%= <%= singular_table_name %>.menu.template.titleize unless <%= singular_table_name %>.menu.blank? %>
Blocks: <%% unless <%= singular_table_name %>.blocks.empty? %> <%%= <%= singular_table_name %>.blocks.each do |block| %> <%%= link_to block.title, [:admin, block] %> => <%%= block.region.titleize %>
<%% end %> <%% end %>
Teaser: <%%= <%= singular_table_name %>.teaser unless <%= singular_table_name %>.teaser.blank? %>
URL: <%%= <%= singular_table_name %>.menu.url unless <%= singular_table_name %>.menu.blank? %>