Sha256: 4aaee97ee774016de086c573409d9b43407a66cfae1277d4e9f8a0e304752cc0

Contents?: true

Size: 1.26 KB

Versions: 17

Compression:

Stored size: 1.26 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)
      =="&nbsp;"
      ==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, :onsubmit => "return confirm('#{pat(:confirm)}')"
      .actions-bar.wat-cf
        .actions=="&nbsp;"

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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
padrino-admin-0.10.6 lib/padrino-admin/generators/templates/slim/page/index.slim.tt
padrino-admin-0.10.6.e lib/padrino-admin/generators/templates/slim/page/index.slim.tt
padrino-admin-0.10.6.d lib/padrino-admin/generators/templates/slim/page/index.slim.tt
padrino-admin-0.10.6.c lib/padrino-admin/generators/templates/slim/page/index.slim.tt
padrino-admin-0.10.6.b lib/padrino-admin/generators/templates/slim/page/index.slim.tt
padrino-admin-0.10.6.a lib/padrino-admin/generators/templates/slim/page/index.slim.tt
padrino-admin-0.10.5 lib/padrino-admin/generators/templates/slim/page/index.slim.tt
padrino-admin-0.10.4 lib/padrino-admin/generators/templates/slim/page/index.slim.tt
padrino-admin-0.10.3 lib/padrino-admin/generators/templates/slim/page/index.slim.tt
padrino-admin-0.10.2 lib/padrino-admin/generators/templates/slim/page/index.slim.tt
padrino-admin-0.10.1 lib/padrino-admin/generators/templates/slim/page/index.slim.tt
padrino-admin-0.10.0 lib/padrino-admin/generators/templates/slim/page/index.slim.tt
padrino-admin-0.9.29 lib/padrino-admin/generators/templates/slim/page/index.slim.tt
padrino-admin-0.9.28 lib/padrino-admin/generators/templates/slim/page/index.slim.tt
padrino-admin-0.9.27 lib/padrino-admin/generators/templates/slim/page/index.slim.tt
padrino-admin-0.9.26 lib/padrino-admin/generators/templates/slim/page/index.slim.tt
padrino-admin-0.9.25 lib/padrino-admin/generators/templates/slim/page/index.slim.tt