Sha256: df03d64ea49e312140b53bb1ce1837ea0f0d91a292c1d4a8ddd0ed2ec959b2f5

Contents?: true

Size: 1.96 KB

Versions: 9

Compression:

Stored size: 1.96 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_words(scrub_html(reader.description), 24)

            - tbody.modify_cell do
              %td.actions
                - if admin?
                  - if reader.is_user?
                    %span.action.disabled= image('minus_disabled') + ' ' + t('remove')
                  - else
                    = link_to(image('minus') + ' ' + t('remove'), admin_reader_url(reader), :method => :delete, :class => 'action', :confirm => t('reader_extension.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

9 entries across 9 versions & 1 rubygems

Version Path
radiant-reader-extension-3.0.5 app/views/admin/readers/index.html.haml
radiant-reader-extension-3.0.4 app/views/admin/readers/index.html.haml
radiant-reader-extension-3.0.3 app/views/admin/readers/index.html.haml
radiant-reader-extension-3.0.2 app/views/admin/readers/index.html.haml
radiant-reader-extension-3.0.1 app/views/admin/readers/index.html.haml
radiant-reader-extension-3.0.0 app/views/admin/readers/index.html.haml
radiant-reader-extension-3.0.0.rc4 app/views/admin/readers/index.html.haml
radiant-reader-extension-3.0.0.rc3 app/views/admin/readers/index.html.haml
radiant-reader-extension-2.0.0.rc4 app/views/admin/readers/index.html.haml