Bug #24907 » foreman-cern-issue24907-hide-hostgroups-in-taxonomies-tmp.patch
app/views/taxonomies/_form.html.erb | ||
---|---|---|
<% if User.current.allowed_to?(:view_environments) %>
|
||
<li><a href="#environments" data-toggle="tab"><%= _("Environments") %></a></li>
|
||
<% end %>
|
||
<% if User.current.allowed_to?(:view_hostgroups) %>
|
||
<li><a href="#hostgroups" data-toggle="tab"><%= _("Host Groups") %></a></li>
|
||
<% end %>
|
||
<% if taxonomy.is_a?(Organization) && show_location_tab? %>
|
||
<li><a href="#locations" data-toggle="tab"><%= _('Locations') %></a></li>
|
||
<% end %>
|
||
... | ... | |
<% end %>
|
||
<%= show_resource_if_allowed(f, taxonomy, :environments) %>
|
||
<%= show_resource_if_allowed(f, taxonomy, :hostgroups) %>
|
||
<% if taxonomy.is_a?(Location) && show_organization_tab? %>
|
||
<div class="tab-pane" id="organizations">
|
- « Previous
- 1
- 2
- Next »