Sha256: d7dc8a2eca5a048098b5223f8fd16f6aed89582511c21193f0df057632c5c877

Contents?: true

Size: 1.8 KB

Versions: 19

Compression:

Stored size: 1.8 KB

Contents

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

#readers_table.outset      
  %table#readers.index{:cellspacing=>"0", :border=>"0", :cellpadding=>"0"}
    %thead
      %thead
        %tr
          - render_region :thead do |thead|
            - thead.title_header do
              %th.reader Name / Login
            - thead.description_header do
              %th.reader_description Self-description
            - thead.modify_header do
              %th.modify Modify
              
    %tbody
      - @readers.each do |reader|
        %tr
          - render_region :tbody do |tbody|
            - tbody.title_cell do
              %td{:class => reader.activated? ? 'name activated' : 'name inactive'}
                = link_to gravatar_for(reader, {:size => 32}, {:class => 'avatar avatar_32x32'}), edit_admin_reader_url(reader)
                = link_to reader.name, edit_admin_reader_url(reader), :class => reader.trusted? ? '' : 'untrusted'
                %span.info
                  = "(#{reader.login})"
                - unless reader.notes.blank?
                  %p.admin_notes
                    %strong
                      note:
                    = reader.notes

            - tbody.description_cell do
              %td.reader_description
                = truncate_and_textilize(reader.description, 24)

            - tbody.modify_cell do
              %td.actions
                - if admin?
                  = link_to(image('minus') + ' ' + t('delete_reader'), admin_reader_url(reader), :method => :delete, :class => 'action', :confirm => t('really_delete_reader', :name => reader.name))
        
      
  - render_region :bottom do |bottom|
    - bottom.buttons do
      #actions
        = pagination_for @readers
        %ul
          %li= link_to image('plus') + " " + "new reader", new_admin_reader_url

Version data entries

19 entries across 19 versions & 1 rubygems

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