Sha256: 122a67ca765b40369ef3c234ea6c27a79300425a0c6f8e64d4ded6210fb54abe
Contents?: true
Size: 1.6 KB
Versions: 6
Compression:
Stored size: 1.6 KB
Contents
<div class="cbac"> <h2>Subset:</h2> <form action="<%= request.url %>" method="get" name="subset_view_form"> <b>Privilege set</b> starts with: <input type="text" name="priv_substr" value="<%= params[:priv_substr] %>" /><br /> <b>Role</b> starts with: <input type="text" name="role_substr" value="<%= params[:role_substr] %>" /><br/> <input type="submit" value="Submit" /> </form> <h1>Permissions</h1> <table> <tr> <th>Privilegeset</th> <% (@context_roles.sort { |x, y| x[0].to_s <=> y[0].to_s }).each do |name, comment| %> <th><%= name %></th> <% end %> <% (@generic_roles.sort { |x, y| x.name <=> y.name }).each do |role| %> <th><%= role.name %></th> <% end %> </tr> <% (@sets.sort do |x,y| x[0].to_s <=> y[0].to_s end).each do |token, set| %> <tr> <td><span title ="<%= set.comment %>"><%= set.name %></span></td> <% (@context_roles.sort { |x, y| x[0].to_s <=> y[0].to_s }).each do |context_role, comment| %> <td class="checked"> <%= render :partial => "cbac/permissions/update_context_role.html", :locals => {:context_role => context_role.to_s, :set_id => set.id.to_s, :update_partial => false} %> </td> <% end %> <% (@generic_roles.sort { |x, y| x.name <=> y.name }).each do |role| %> <td class="checked"> <%= render :partial => "cbac/permissions/update_generic_role.html", :locals => {:role => role, :set_id => set.id.to_s, :update_partial => false} %> </td> <% end %> </tr> <% end %> </table> </div>
Version data entries
6 entries across 6 versions & 1 rubygems