Sha256: 574a1af135fcfd925e67b68c662ec3def82bb312d7d72a7973428fbcfac2f7b1
Contents?: true
Size: 1.72 KB
Versions: 28
Compression:
Stored size: 1.72 KB
Contents
<% page_title "Administration / Group Browser" %> <% @toolbar_title = "List Groups" %> <% content_for :functions do %> <%= link_to(span_tag("Add Group"), new_cms_group_path, :id => "new_group_button", :class => "button") %> <% end %> <div class="roundedcorners"> <table class="data"> <thead> <tr> <th colspan="2" class="first"> <div class="dividers"> <%= link_to "Name", cms_groups_path(:order => determine_order(params[:order], "groups.name")) %> </div> </th> <th> <div class="dividers"> <%= link_to "Type", cms_groups_path(:order => determine_order(params[:order], "group_types.name")) %> </div> </th> <th colspan="2" class="last"><div class="dividers">Permissions</div></th> </tr> </thead> <% section_count = Section.count %> <% @groups.each do |g| %> <tr> <td class="first"></td> <td> <div class="dividers"> <%= link_to h(g.name), [:edit, :cms, g] %> </div> </td> <td> <div class="dividers"> <%= h(g.group_type.name) %> </div> </td> <td> <% g.permissions.uniq.each do |p| %> - <%= p.full_name %> <br /> <% end %> - <%= g.cms_access? ? "Edit" : "View" %> <%= g.sections.count >= section_count ? "All Sections" : "#{g.sections.count} of #{section_count} Sections" %> </td> <td class="last"></td> </tr> <% end %> </table> <div class="tl"></div> <div class="tr"></div> <div class="bl"></div> <div class="br"></div> </div> <% if @groups.total_pages > 1 %> <%= render_pagination @groups, :groups %> <% end %>
Version data entries
28 entries across 28 versions & 9 rubygems