Sha256: 3af50f670931ad57bf733869b8004f65abedff7e91175ff5b0f9e508cc9570fb

Contents?: true

Size: 1.07 KB

Versions: 5

Compression:

Stored size: 1.07 KB

Contents

<%% title "<%= plural_name.titleize %>" %>
<%- first_attribute = model_attributes.first -%>
<div class="button_bar">
	<%%= render :partial => 'search' %>
	<%%= link_to 'new page', new_<%= singular_name %>_path, :class => 'newfile tip', :title => "New <%= singular_name.titleize %>" %>
</div>

<%%= will_paginate @<%= plural_name %> %>

<%% @<%= plural_name %>.each do |<%= singular_name %>| %>
	<div class="item">
		<div class="ui-widget ui-helper-clearfix" style='float:right'>
			<%%= link_to '', edit_<%= singular_name %>_path(<%= singular_name %>), :class => 'ui-icon	ui-icon-pencil edit tip', :title => "Edit This Item" %>
			<%%= link_to '', <%= singular_name %>, :confirm => 'Are you sure?', :method => :delete, :class => 'ui-icon ui-icon-close destroy tip', :title => "Destroy This Item"  %>						
		</div>
		
		<h3><%%= link_to <%= singular_name %>.<%= first_attribute.name %>, <%= singular_name %> %></h3>
		<p>
			<%%= link_to "Preview <%= singular_name.titleize %>", <%= singular_name %>, :class => 'remote_iframe' %>
		</p>
	</div>
<%% end -%>

<%%= will_paginate @<%= plural_name %> %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dust-generators-0.3.3 lib/generators/dust/scaffold/templates/views/erb/index.html.erb
dust-generators-0.3.2 lib/generators/dust/scaffold/templates/views/erb/index.html.erb
dust-generators-0.3.1 lib/generators/dust/scaffold/templates/views/erb/index.html.erb
dust-generators-0.2.8 lib/generators/dust/scaffold/templates/views/erb/index.html.erb
dust-generators-0.2.6 lib/generators/dust/scaffold/templates/views/erb/index.html.erb