Sha256: f2332222d1551682728bc69034d95c4e54ce73d4af9980a14944ea67d4545472

Contents?: true

Size: 1.74 KB

Versions: 6

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, :groups %>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
browsercms-3.4.2 app/views/cms/groups/index.html.erb
browsercms-3.4.2.rc1 app/views/cms/groups/index.html.erb
browsercms-3.4.1 app/views/cms/groups/index.html.erb
browsercms-3.4.0 app/views/cms/groups/index.html.erb
browsercms-3.4.0.rc2 app/views/cms/groups/index.html.erb
browsercms-3.4.0.rc1 app/views/cms/groups/index.html.erb