- link_text = link_button("preview.png", resource_page, :title => "View the Resource Page: '#{resource_page.name}'.")
- link_text += name_for_component(resource_page, :hide_componenent_name => true)

= accordion_for(resource_page, link_text, :resource_page) do
  %div.action_menu
    %div.action_menu_header_left
      %span.author
        = resource_page.user.name
    %div.action_menu_header_right   
      %ul.menu
        - if (resource_page.changeable?(current_user))
          %li.menu=link_to 'edit', edit_resource_page_url(resource_page)
          %li.menu=link_to 'delete', resource_page, :class => 'delete', :confirm => "Are you sure you want to delete Resource Page #{resource_page.id}", :method => :delete 
  %div{:id => dom_id_for(resource_page, :details), :class => 'tiny'}
    %p=resource_page.description
    %p
      %i= updated_time_text(resource_page)
    %p
      %i
        Used in: #{resource_page.offerings.length} classes.

- link_text = link_button("preview.png", resource_page, :title => "View the Resource Page: '#{resource_page.name}'.")
- link_text += name_for_component(resource_page, :hide_componenent_name => true)

= accordion_for(resource_page, link_text, :resource_page) do
  %div.action_menu
    %div.action_menu_header_left
      %span.author
        = resource_page.user.name
    %div.action_menu_header_right   
      %ul.menu
        - if (resource_page.changeable?(current_user))
          %li.menu= link_to 'view', resource_page
          %li.menu= link_to 'edit', edit_resource_page_url(resource_page)
          %li.menu= link_to 'delete', resource_page, :class => 'delete', :confirm => "Are you sure you want to delete Resource Page #{resource_page.id}", :method => :delete 
  %div{:id => dom_id_for(resource_page, :details), :class => 'tiny'}
    %p= resource_page.description
    %p= pluralize(resource_page.attached_files.size, "attachment")
    %p
      %i= updated_time_text(resource_page)
    %p
      %i
        Used in: #{resource_page.offerings.length} classes.

Add more info to ResourcePage accordion
Add more info to ResourcePage accordion