Sha256: 7a9723d996b4718d28bd16595102e6809f4308e374bf5568c280d5495581c282

Contents?: true

Size: 1.27 KB

Versions: 11

Compression:

Stored size: 1.27 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

11 entries across 11 versions & 2 rubygems

Version Path
bootstrap-on-0.0.9 lib/bootstrap-on/templates/slim/page/index.slim.tt
bootstrap-on-0.0.8 lib/bootstrap-on/templates/slim/page/index.slim.tt
bootstrap-on-0.0.7 lib/bootstrap-on/templates/slim/page/index.slim.tt
bootstrap-on-0.0.6 lib/bootstrap-on/templates/slim/page/index.slim.tt
bootstrap-on-0.0.5 lib/bootstrap-on/templates/slim/page/index.slim.tt
bootstrap-on-0.0.4 lib/bootstrap-on/templates/slim/page/index.slim.tt
bootstrap-on-0.0.3 lib/bootstrap-on/templates/slim/page/index.slim.tt
bootstrap-on-0.0.2 lib/bootstrap-on/templates/slim/page/index.slim.tt
bootstrap-on-0.0.1 lib/bootstrap-on/templates/slim/page/index.slim.tt
bootstrap-on-0.0.0 lib/bootstrap-on/templates/slim/page/index.slim.tt
padrino-admin-0.10.7 lib/padrino-admin/generators/templates/slim/page/index.slim.tt