Sha256: 1105f54c9ffce20d736ef378fcb62f97d05fdce9955d993da69c9907c080fc86

Contents?: true

Size: 1.71 KB

Versions: 3

Compression:

Stored size: 1.71 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
                    = truncate_words(group.description, 40)
            - 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

3 entries across 3 versions & 1 rubygems

Version Path
radiant-reader_group-extension-1.1.0 app/views/admin/groups/index.html.haml
radiant-reader_group-extension-1.0.1 app/views/admin/groups/index.html.haml
radiant-reader_group-extension-1.0.0 app/views/admin/groups/index.html.haml