Project

General

Profile

« Previous | Next » 

Revision 5b3879ff

Added by Amir Fefer over 8 years ago

Fixes #11461 - Remove 'global scope' column in host/hostgroup parameters form

View differences:

app/views/common_parameters/_inherited_parameters.html.erb
<table class="table table-condensed" id="inherited_parameters">
<thead>
<tr>
<th class='col-md-3'><%= _("Scope") %></th>
<th class='col-md-2'><%= _("Name") %></th>
<th class='col-md-6'><%= _("Value") %></th>
<th class='col-md-3'><%= _("Name") %></th>
<th class='col-md-8'><%= _("Value") %></th>
<th><%= _('Actions') %></th>
</tr>
</thead>
......
<% keys = inherited_parameters.keys.sort %>
<% keys.each do |name| %>
<tr class="<%="override-param" if @host.host_parameters.map(&:name).include?(name)%>">
<%= "<td rowspan='#{keys.size}'>#{_('Global')}</td>".html_safe if name == keys.first %>
<td><%= content_tag :span, name, :id => "name_#{name}"%>
</td>
<td><%= parameter_value_field inherited_parameters[name] %></td>

Also available in: Unified diff