Sha256: 9539bf68e4ec75c2d4b7e83a6bc969df2a613b07258d9fd298c75ea089dcf1d8
Contents?: true
Size: 916 Bytes
Versions: 10
Compression:
Stored size: 916 Bytes
Contents
<%% title "<%= singular_name.titleize %>" %> <%- first_attribute = attributes.first -%> <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 %>.<%= first_attribute.name %>, @<%= singular_name %> %></h3> <p> <%%= link_to "Preview <%= singular_name.titleize %>", @<%= singular_name %>, :class => 'remote_iframe' %> </p> <%- for attribute in attributes -%> <p> <strong><%= attribute.column.human_name.titleize %>:</strong> <%%= @<%= singular_name %>.<%= attribute.name %> %> </p> <%- end -%> </div>
Version data entries
10 entries across 10 versions & 1 rubygems