Sha256: 58630e36c8e2293cc562e22f1bc11d60f782d0d22a79c24e1750d99ea55551d7
Contents?: true
Size: 1.2 KB
Versions: 3
Compression:
Stored size: 1.2 KB
Contents
%h1 Listado de <%= plural_table_name.humanize %> - if @<%= plural_table_name %>.any? %table %thead %tr <%- attributes.reject(&:password_digest?).each do |attribute| -%> %th <%= attribute.human_name %> <%- end -%> %th %th %th %tbody - @<%= plural_table_name %>.each do |<%= singular_table_name %>| %tr <%- attributes.reject(&:password_digest?).each do |attribute| -%> <%- if attribute.type == :integer or attribute.type == :decimal -%> %td= number_with_delimiter <%= singular_table_name %>.<%= attribute.name %> <%- else -%> %td= <%= singular_table_name %>.<%= attribute.name %> <%- end -%> <%- end -%> %td= link_to 'Mostrar', <%= singular_table_name %> %td= link_to 'Editar', edit_<%= singular_table_name %>_path(<%= singular_table_name %>) %td= link_to 'Eliminar', <%= singular_table_name %>, method: :delete, data: { confirm: '¿Estás seguro?' } - else %div %h3 No se encontraron <%= plural_table_name.humanize %> %br <%- nuevo_str = (singular_table_name.split('_').first =~ /[ad]$/) ? 'Nueva' : 'Nuevo' %> = link_to <%= %{"#{nuevo_str} #{human_name}", new_#{singular_table_name}_path} %>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rieles-0.0.8 | lib/templates/haml/scaffold/index.html.haml |
rieles-0.0.7 | lib/templates/haml/scaffold/index.html.haml |
rieles-0.0.6 | lib/templates/haml/scaffold/index.html.haml |