Sha256: 7a90bf71d9e70b306c5c3e35ca284264031322bf5bc39cf578dbaa257b9a768b
Contents?: true
Size: 1.16 KB
Versions: 3
Compression:
Stored size: 1.16 KB
Contents
- title "<%= plural_name.titleize %>" <%- if actions? :new -%> %p.buttons = link_to "#{image_tag("icons/new.gif")} New <%= singular_name.titleize %>", new_<%= singular_name %>_path, :class => "button positive" <%- end -%> %table %tr <%- for attribute in attributes -%> %th <%= attribute.column.human_name %> <%- end -%> %th Actions - for <%= singular_name %> in @<%= plural_name %> - tr_class = cycle 'even', 'odd' %tr{:class => tr_class} <%- for attribute in attributes -%> %td= h <%= singular_name %>.<%= attribute.name %> <%- end -%> %td <%- if action? :show -%> = link_to "#{image_tag("icons/show.gif")} #{t("label.show")}", <%= singular_name %>, :class => "button positive" <%- end -%> <%- if action? :edit -%> = link_to "#{image_tag("icons/edit.gif")} #{t("label.edit")}", edit_<%= singular_name %>_path(<%= singular_name %>), :class => "button" <%- end -%> <%- if action? :destroy -%> = link_to "#{image_tag("icons/delete.gif")} #{t("label.destroy")}", <%= singular_name %>, :confirm => t("confirm.destroy"), :method => :delete, :class => "button negative" <%- end -%>
Version data entries
3 entries across 3 versions & 1 rubygems