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