Sha256: a2388a455747426e092eebf9fb13cf153ce7c18e548efa125d57ee7b8ab1b97f

Contents?: true

Size: 892 Bytes

Versions: 2

Compression:

Stored size: 892 Bytes

Contents

<%% title "<%= singular_name.titleize %>" %>

<div class="item">
	<div style='float:right'> 
		<%- if action? :edit -%>
			<%%=link_to '', edit_<%= singular_name %>_path(<%= singular_name %>), :class => 'edit tip', :title => "Edit This Item" %>
		<%- end -%>
		<%- if action? :destroy -%>
			<%%=link_to "", <%= singular_name %>, :confirm => 'Are you sure?', :method => :delete, :class => 'destroy tip', :title => "Destroy This Item"  %>						
		<%- end -%>
	</div>
	<h3><%%= link_to <%= singular_name %>.<%= model_attributes.first %>, <%= singular_name %>.menu_item.url %></h3>
	<p>
		<%%= link_to "Preview <%= singular_name.titleize %>", <%= singular_name %>.filename, :class => 'remote_iframe' %>
	</p>
	<%- for attribute in model_attributes -%>
	<p>
	  <strong><%= attribute.human_name.titleize %>:</strong>
	  <%%= @<%= singular_name %>.<%= attribute.name %> %>
	</p>
	<%- end -%>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dust-generators-0.0.2 lib/generators/dust/scaffold/templates/views/erb/show.html.erb
dust-generators-0.0.1.pre2 lib/generators/dust/scaffold/templates/views/erb/show.html.erb