Sha256: 2f85a1a3d6618b2afcdfcc963104e3b52dd3bd74be5a55e28b727823166b15a1

Contents?: true

Size: 1.18 KB

Versions: 4

Compression:

Stored size: 1.18 KB

Contents

- @page_title = t('layouts') + ' - ' + default_page_title

.outset
  = render_region :top
  %table.index#layouts
    %thead
      %tr
        - render_region :thead do |thead|
          - thead.title_header do
            %th.name
              = t('layout')
          - thead.actions_header do
            %th.actions{:style=>"width:9em"}
              = t('modify')
    %tbody
      - if @layouts.any?
        - @layouts.each do |layout|
          %tr[layout]
            - render_region :tbody, :locals => {:layout => layout} do |tbody|
              - tbody.title_cell do
                %td.name
                  = image('layout', :alt => '')
                  = link_to layout.name, edit_admin_layout_url(layout)
              - tbody.actions_cell do
                %td.actions
                  = link_to image('minus') + ' ' + t('remove'), remove_admin_layout_url(layout), :class => "action"
      - else
        %tr
          %td.empty{:colspan => admin.layout.index.tbody.length}= t('no_layouts')

- render_region :bottom do |bottom|
  - bottom.new_button do
    #actions
      = pagination_for(@layouts)
      %ul
        %li= link_to image('plus') + " " + t('new_layout'), new_admin_layout_url

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
radiantcms-couchrest_model-0.1.3 app/views/admin/layouts/index.html.haml
radiantcms-couchrest_model-0.1.2 app/views/admin/layouts/index.html.haml
radiantcms-couchrest_model-0.1.1 app/views/admin/layouts/index.html.haml
radiantcms-couchrest_model-0.1 app/views/admin/layouts/index.html.haml