Sha256: 36b0973983ac482e44e87de4b13096341a35cdc0f96d237dfe2025f55bd25e9e

Contents?: true

Size: 1.2 KB

Versions: 5

Compression:

Stored size: 1.2 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, :class => 'action_button'

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
radiant-1.0.0.rc4 app/views/admin/snippets/index.html.haml
radiant-1.0.0.rc3 app/views/admin/snippets/index.html.haml
kajam-1.0.3.rc2 app/views/admin/snippets/index.html.haml
radiant-1.0.0.rc2 app/views/admin/snippets/index.html.haml
radiant-1.0.0.rc1 app/views/admin/snippets/index.html.haml