Sha256: e7a804179788b65203f4aec26cf44687619373bef73991fe6727794e7d353c2a
Contents?: true
Size: 1022 Bytes
Versions: 1
Compression:
Stored size: 1022 Bytes
Contents
%h2= title - table_for @<%= plural_name %> do |t| - t.head do <%- for attribute in attributes -%> - t.th :<%= attribute.name %> <%- end -%> - t.th t("actions"), :colspan => <%= table_link_count %> - unless will_paginate(@<%= plural_name %>).blank? - t.foot do - t.tr do - t.td will_paginate(@<%= plural_name %>), :colspan => t.width - t.body do |<%= singular_name %>| - t.tr do <%- for attribute in attributes -%> - t.td_h :<%= attribute.name %> <%- end -%> <%- if action? :show -%> - t.td link_to(t(:show), <%= item_path %>) <%- end -%> <%- if action? :edit -%> - t.td link_to(t(:edit), edit_<%= singular_name %>_path(<%= singular_name %>)) <%- end -%> <%- if action? :destroy -%> - t.td link_to(t(:destroy), <%= singular_name %>, :confirm => h(t(:confirm)), :method => :delete) <%- end -%> <%- if actions? :new -%> %ol.actions %li.new= link_to t(:new), new_<%= singular_name %>_path <%- end -%>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
iain-pizza-generators-0.1.4 | rails_generators/pizza_scaffold/templates/views/haml/index.html.haml |