Sha256: a447b289958313a73d2481298b328dad9bb62132c39d9fce78f0141d4e90ac62

Contents?: true

Size: 1.19 KB

Versions: 6

Compression:

Stored size: 1.19 KB

Contents

.block
  .secondary-navigation
    %ul.wat-cf
      %li.first.active=link_to pat(:list), url(:<%= @orm.name_plural %>, :index)
      %li=link_to pat(:new), url(:<%= @orm.name_plural %>, :new)
  .content
    %h2.title
      =pat(:all)
      =mt(:<%= @orm.name_plural %>)
    .inner
      %table.table
        %tr
          <%- @orm.columns.each_with_index do |column, i| -%>
          %th<%= ".first" if i==0 %>=mat(:<%= @orm.name_singular %>, :<%= column.name %>)
          <%- end -%>
          %th.last="&nbsp;"
        -@<%= @orm.name_plural %>.each do |<%= @orm.name_singular %>|
          %tr
            <%- @orm.columns.each_with_index do |column, i| -%>
            %td<%= ".first" if i==0 %>=<%= @orm.name_singular %>.<%= column.name %>
            <%- end -%>
            %td.last
              =button_to pat(:edit), url(:<%= @orm.name_plural %>, :edit, :id => <%= @orm.name_singular %>.id), :method => :get, :class => :button_to
              ="|"
              =button_to pat(:delete), url(:<%= @orm.name_plural %>, :destroy, :id => <%= @orm.name_singular %>.id), :method => :delete, :class => :button_to
      .actions-bar.wat-cf
        .actions="&nbsp;"

-content_for :sidebar, partial("base/sidebar")

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
padrino-admin-0.9.24 lib/padrino-admin/generators/templates/haml/page/index.haml.tt
padrino-admin-0.9.23 lib/padrino-admin/generators/templates/haml/page/index.haml.tt
padrino-admin-0.9.22 lib/padrino-admin/generators/templates/haml/page/index.haml.tt
padrino-admin-0.9.21 lib/padrino-admin/generators/templates/haml/page/index.haml.tt
padrino-admin-0.9.20 lib/padrino-admin/generators/templates/haml/page/index.haml.tt
padrino-admin-0.9.19 lib/padrino-admin/generators/templates/haml/page/index.haml.tt