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/hosts/_list.html.erb
<td class="hidden-xs"><%= (icon(host.os, :size => "18x18") + trunc(" #{host.os.to_label}",14)).html_safe if host.os %></td>
<td class="hidden-xs"><%= trunc(host.try(:environment), 14) %></td>
<td class="hidden-tablet hidden-xs ellipsis"><%= model_name host %></td>
<td class="hidden-tablet hidden-xs ellipsis"><%= label_with_link host.hostgroup, 26 %></td>
<td class="hidden-tablet hidden-xs ellipsis"><%= label_with_link host.hostgroup, 26, @hostgroup_authorizer %></td>
<td class="hidden-tablet hidden-xs"><%= last_report_column(host) %></td>
<td>
<%= action_buttons(
display_link_if_authorized(_("Edit"), hash_for_edit_host_path(:id => host)),
display_link_if_authorized(_("Clone"), hash_for_clone_host_path(:id => host)),
display_delete_if_authorized(hash_for_host_path(:id => host), :confirm => _("Delete %s?") % host.name, :action => :destroy))%>
display_link_if_authorized(_("Edit"), hash_for_edit_host_path(:id => host).merge(:auth_object => host, :authorizer => authorizer)),
display_link_if_authorized(_("Clone"), hash_for_clone_host_path(:id => host).merge(:auth_object => host, :authorizer => authorizer)),
display_delete_if_authorized(hash_for_host_path(:id => host).merge(:auth_object => host, :authorizer => authorizer), :confirm => _("Delete %s?") % host.name, :action => :destroy))%>
</td>
</tr>
<% end %>

Also available in: Unified diff