Sha256: bcd5a07822e70abce4da6c2891efe7772eac3324616845774eb6768e73c3b1ef

Contents?: true

Size: 1.67 KB

Versions: 21

Compression:

Stored size: 1.67 KB

Contents

- include_stylesheet('admin/reader')
= render_region :top 

#messages_table.outset      
  %table#messages.index{:cellspacing=>"0", :border=>"0", :cellpadding=>"0"}
    %thead
      %tr
        - render_region :thead do |thead|
          - thead.subject_header do
            %th.message Subject
          - thead.sent_header do
            %th.message_sent Delivery status
          - thead.modify_header do
            %th.modify Modify
    %tbody
      - @messages.each do |message|
        %tr
          - render_region :tbody do |tbody|
            - tbody.subject_cell do
              %td.name
                = link_to message.subject, admin_message_url(message), :class => message.has_function? ? "functional" : "normal"
                = render :partial => '/admin/messages/list_function', :locals => {:message => message}

            - tbody.sent_cell do
              %td.message_sent
                %p
                  - if message.sent_at
                    = t('last_sent')
                    = l(message.sent_at, :format => :short)
                  - else
                    = t('never_sent')
            - tbody.modify_cell do
              %td.actions
                = link_to( image('delta') + ' ' + t('edit_message'), edit_admin_message_url(message), :class => "action" )
                = link_to( image('minus') + ' ' + t('delete_message'), admin_message_url(message), {:method => :delete, :class => "action", :confirm => t('really_delete_message', :title => message.subject)})

  - render_region :bottom do |bottom|
    - bottom.buttons do
      #actions
        = pagination_for @messages
        %ul
          %li= link_to image('plus') + " " + "new message", new_admin_message_url

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
radiant-reader-extension-1.3.13 app/views/admin/messages/index.haml
radiant-reader-extension-1.3.12 app/views/admin/messages/index.haml
radiant-reader-extension-1.3.11 app/views/admin/messages/index.haml
radiant-reader-extension-1.3.10 app/views/admin/messages/index.haml
radiant-reader-extension-1.3.9 app/views/admin/messages/index.haml
radiant-reader-extension-1.3.8 app/views/admin/messages/index.haml
radiant-reader-extension-1.3.7 app/views/admin/messages/index.haml
radiant-reader-extension-1.3.6 app/views/admin/messages/index.haml
radiant-reader-extension-1.3.4 app/views/admin/messages/index.haml
radiant-reader-extension-1.3.3 app/views/admin/messages/index.haml
radiant-reader-extension-1.3.1 app/views/admin/messages/index.haml
radiant-reader-extension-1.3.0 app/views/admin/messages/index.haml
radiant-reader-extension-1.2.4 app/views/admin/messages/index.haml
radiant-reader-extension-1.2.3 app/views/admin/messages/index.haml
radiant-reader-extension-1.2.2 app/views/admin/messages/index.haml
radiant-reader-extension-1.2.1 app/views/admin/messages/index.haml
radiant-reader-extension-1.2.0 app/views/admin/messages/index.haml
radiant-reader-extension-1.1.1 app/views/admin/messages/index.haml
radiant-reader-extension-1.1.0 app/views/admin/messages/index.haml
radiant-reader-extension-1.0.1 app/views/admin/messages/index.haml