Sha256: 9506a5d09d46ccc5a2faec8471311ef42ebac804da39d37ad97ba564abb9fcb5
Contents?: true
Size: 1.74 KB
Versions: 11
Compression:
Stored size: 1.74 KB
Contents
<% page_title "Administration / Group Browser" %> <% @toolbar_title = "List Groups" %> <%= content_for :functions do %> <%= link_to(span_tag("Add Group"), new_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", groups_path(:order => determine_order(params[:order], "#{Cms::Group.table_name}.name")) %> </div> </th> <th> <div class="dividers"> <%= link_to "Type", groups_path(:order => determine_order(params[:order], "#{Cms::GroupType.table_name}.name")) %> </div> </th> <th colspan="2" class="last"><div class="dividers">Permissions</div></th> </tr> </thead> <% section_count = Cms::Section.count %> <% @groups.each do |g| %> <tr> <td class="first"></td> <td> <div class="dividers"> <%= link_to h(g.name), [:edit, 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, Cms::Group %> <% end %>
Version data entries
11 entries across 11 versions & 1 rubygems