Home
<% models.select { |m| linkable?(m, :index) }[0..4].each do |m| -%>
<% end -%>
<% each_controller do -%>
<%
new_link = linkable?(:new)
new_form = !new_link && linkable?(model, :create, :method => :post)
model_key = model.to_s.underscore
-%>
<% 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 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_class.to_s.titleize %>
>
<% elsif add_form -%>
Add <%= a_or_an collection_class.to_s.titleize %>
<% end -%>
<% end -%>
<% if aside_collections -%>
<% end -%>
<%
name_attribute = model.name_attribute
-%>