Sha256: 0e33cded26679fcfbed35c092157b3a2e258a721863827f30bfc54c8df826304

Contents?: true

Size: 1.68 KB

Versions: 7

Compression:

Stored size: 1.68 KB

Contents

- include_stylesheet('admin/reader_group')

= render_region :top

#groups_table.outset      
  %table#groups.index{:cellspacing=>"0", :border=>"0", :cellpadding=>"0"}
    %thead
      = render :partial => 'list_head'
    %tbody
      - @groups.each do |group|
        %tr
          - render_region :tbody do |tbody|
            - tbody.name_cell do
              %td.name
                %p
                  = link_to group.name, admin_group_url(group)
                  %br
                  %span.notes
                    = group.description
            - tbody.home_cell do
              %td.home
                - if group.homepage
                  = link_to group.homepage.title, edit_admin_page_url(group.homepage)
                - else
                  = t('none')
            - tbody.members_cell do
              %td.members
                = group.readers.count
            - tbody.pages_cell do
              %td.pages
                = group.pages.count
            - tbody.modify_cell do
              %td.actions
                = link_to_unless_current image('plus') + ' ' + t('add_members'), new_admin_group_group_invitation_url(group), :class => 'action'
                = link_to_unless_current image('delta') + ' ' + t('edit_group'), edit_admin_group_url(group), :class => 'action'
                = link_to_unless_current image('minus') + ' ' + t('delete_group'), admin_group_url(group), :method => 'delete', :confirm => t("really_delete_group", :name => group.name), :class => 'action'
        
- render_region :bottom do |bottom|
  - bottom.buttons do
    #actions
      = pagination_for @readers
      %ul
        %li
          = link_to image('plus') + " " + t("new_group"), new_admin_group_url

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
radiant-reader_group-extension-1.2.4 app/views/admin/groups/index.html.haml
radiant-reader_group-extension-1.2.3 app/views/admin/groups/index.html.haml
radiant-reader_group-extension-1.2.2 app/views/admin/groups/index.html.haml
radiant-reader_group-extension-1.2.1 app/views/admin/groups/index.html.haml
radiant-reader_group-extension-1.2.0 app/views/admin/groups/index.html.haml
radiant-reader_group-extension-1.1.2 app/views/admin/groups/index.html.haml
radiant-reader_group-extension-1.1.1 app/views/admin/groups/index.html.haml