Sha256: 9edd547ddd00429a423a5ee898edc109b2c9610eb23d16ad390b1e8b7e0db6cf
Contents?: true
Size: 921 Bytes
Versions: 24
Compression:
Stored size: 921 Bytes
Contents
<%% title "<%= singular_name.titleize %>" %> <%- first_attribute = model_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 model_attributes -%> <p> <strong><%= attribute.human_name.titleize %>:</strong> <%%= @<%= singular_name %>.<%= attribute.name %> %> </p> <%- end -%> </div>
Version data entries
24 entries across 22 versions & 1 rubygems