Sha256: e0ff0bca77e9a9be4634ca257bd06ab7da065574fb075bc1fcda8521c9d92bd8

Contents?: true

Size: 1.17 KB

Versions: 4

Compression:

Stored size: 1.17 KB

Contents

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

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

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

Version data entries

4 entries across 4 versions & 1 rubygems

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