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/architectures/index.html.erb
</tr>
<% for architecture in @architectures %>
<tr>
<td class='col-md-3'><%= link_to_if_authorized(h(architecture.name), hash_for_edit_architecture_path(:id => architecture)) %></td>
<td class='col-md-3'><%= link_to_if_authorized(h(architecture.name),
hash_for_edit_architecture_path(:id => architecture).merge(:auth_object => architecture, :authorizer => authorizer)) %></td>
<td><%=h architecture.operatingsystems.map(&:to_label).to_sentence %></td>
<td align="right">
<%= display_delete_if_authorized hash_for_architecture_path(:id => architecture.name), :confirm => "Delete #{architecture.name}?" %>
<%= display_delete_if_authorized hash_for_architecture_path(:id => architecture.name).merge(:auth_object => architecture, :authorizer => authorizer),
:confirm => "Delete #{architecture.name}?" %>
</td>
</tr>
<% end %>

Also available in: Unified diff