Project

General

Profile

« Previous | Next » 

Revision acfbc458

Added by Marek Hulán about 10 years ago

fixes #812 - new permissions model, user group role and nest support, role filters for better granularity

Contributions from:

View differences:

app/views/subnets/index.html.erb
</tr>
<% for subnet in @subnets %>
<tr>
<td><%=link_to_if_authorized h(subnet.name), hash_for_edit_subnet_path(:id => subnet)%></td>
<td><%=link_to_if_authorized h(subnet.name), hash_for_edit_subnet_path(:id => subnet).merge(:auth_object => subnet, :authorizer => authorizer) %></td>
<td><%=subnet.network_address %></td>
<td><%=subnet.domains.to_sentence %></td>
<td><%=subnet.vlanid %></td>
<td><%=subnet.dhcp %></td>
<td align="right">
<%= display_delete_if_authorized hash_for_subnet_path(:id => subnet), :confirm => _("Delete %s?") % subnet.name %>
<%= display_delete_if_authorized hash_for_subnet_path(:id => subnet).merge(:auth_object => subnet, :authorizer => authorizer), :confirm => _("Delete %s?") % subnet.name %>
</td>
</tr>
<% end %>

Also available in: Unified diff