Home
<% models.select { |m| linkable?(m, :index) }[0..4].each do |m| -%>
<%= m.view_hints.model_name_plural %>
<% end -%>
<% each_controller do -%>
<%
new_link = linkable?(:new)
new_form = !new_link && linkable?(model, :create, :method => :post)
model_key = model.name.tableize
-%>
<%= model_name :plural %>
There
<% if new_link -%>
New <%=model_name %>
<% end -%>
<% if view_hints.paginate? -%>
<% end -%>
<% if view_hints.sortable? -%>
<% else -%>
<% end -%>
<% if view_hints.paginate? -%>
<% end -%>
<% if new_form -%>
<% if boolean_fields -%>
<% end -%>
<% if creator_link -%>
param="creator-link"/>
<% elsif creator -%>
<% end -%>
<% if edit_link -%>
Edit <%= model_name %>
<% end -%>
>
<% if main_content -%>
param="description"/>
<% end -%>
<% if show_fields.any? -%>
<% end -%>
<% if collection -%>
<%= '' if is_user_model %><%= collection.to_s.titleize %>
<% if sortable_collection?(collection) -%>
param="collection"/>
<% else -%>
param/>
<% end -%>
<% if add_link -%>
action="new" if="&can_create?(@<%= model.name.underscore %>.<%= collection %>)" param="new-link">
New <%= collection.to_s.singularize.titleize %>
>
<% elsif add_form -%>