Sha256: be13eb53de4e1ecd34494841f3b9fdd55a60de1a9f62794d1897db0e2ca30b16

Contents?: true

Size: 514 Bytes

Versions: 6

Compression:

Stored size: 514 Bytes

Contents

<%
# Template for RestfulController (index)
# Requires resources model_name

  if resources.length > 0
%>
  <h1> <%= t('ui.listing', :model => model_name,
	     :default => 'Listing %{model}') %></h1>
  <%= render '/shared/error_explanation' %>
  <%= render '/rows/list', :resources => resources %>
<% else %>
  <h1> <%= t('ui.empty_list', :model => model_name,
	     :default => 'List %{model} is empty') %></h1>
<% end %>

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rows_controller-0.4.3 app/views/rows/index.html.erb
rows_controller-0.4.2 app/views/rows/index.html.erb
rows_controller-0.4.1 app/views/rows/index.html.erb
rows_controller-0.3.2 app/views/rows/index.html.erb
rows_controller-0.2.4 app/views/rows/index.html.erb
rows_controller-0.2.3 app/views/rows/index.html.erb