<% # Template for RestfulController (index) # Requires resources model_name if resources.length > 0 %>

<%= t('ui.listing', :model => model_name, :default => 'Listing %{model}') %>

<%= render '/shared/error_explanation' %> <%= render '/rows/list', :resources => resources %> <% else %>

<%= t('ui.empty_list', :model => model_name, :default => 'List %{model} is empty') %>

<% end %>
<%= link_to t('ui.create', :default => 'Create'), url_for(:action => :new) %>