Sha256: cc74cb75083612e7928c1d2b05240c9030fd4451f5f6b1488b9d56e80369746d

Contents?: true

Size: 1.12 KB

Versions: 2

Compression:

Stored size: 1.12 KB

Contents

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

.outset
  = render_region :top
  %table#snippets.index
    %thead
      %tr
        - render_region :thead do |thead|
          - thead.title_header do
            %th.snippet= t('snippet')
          - thead.modify_header do
            %th.modify= t('modify')
    %tbody
      - if @snippets.any?
        - @snippets.each do |snippet|
          %tr.node.level_1
            - render_region :tbody, :locals => {:snippet => snippet} do |tbody|
              - tbody.title_cell do
                %td.snippet
                  = image('snippet', :alt => '')
                  %span= link_to snippet.name, edit_admin_snippet_url(snippet)
              - tbody.modify_cell do
                %td.remove
                  = link_to t('remove'), remove_admin_snippet_url(snippet)
      - 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

2 entries across 2 versions & 2 rubygems

Version Path
radiantcms-couchrest_model-0.1.4 app/views/admin/snippets/index.html.haml
radiant-0.9.1 app/views/admin/snippets/index.html.haml