Feature #335 » facts_as_necessary.diff
foreman/app/views/hosts/_minilist.html.erb 2010-07-01 13:29:04.000000000 -0700 | ||
---|---|---|
<%= check_box_tag "host_ids[]", host.id, selected?(host), :class => 'host_select_boxes', :onClick => 'insertHostVal(this)' if hosts_controller? -%>
|
||
<%=name_column(host) %>
|
||
</td>
|
||
<td><%=h host.try(:os) %></td>
|
||
<td><%=h host.try(:environment) %></td>
|
||
<td><%=h host.try(:model) %></td>
|
||
<td><%=h host.try(:os) || host.fv(:operatingsystem) + " " + host.fv(:operatingsystemrelease)%></td>
|
||
<td><%=h host.try(:environment) || host.fv(:environment)%></td>
|
||
<td><%=h host.try(:model) ||host.fv(:productname) %></td>
|
||
<td><%=h host.try(:hostgroup) %></td>
|
||
<td><%=last_report_column(host) %></td>
|
||
<td>
|
foreman/app/views/hosts/_overview.html.erb 2010-07-01 12:49:04.000000000 -0700 | ||
---|---|---|
<table>
|
||
<% [["Domain", host.domain], ["IP Address", host.ip], ["Puppet Environment", host.environment], ["Host Architecture", host.arch],
|
||
["Host Operating System", host.os], ["Host Group", host.hostgroup]].each do |th,td| %>
|
||
<% [["Domain", host.domain || host.fv('domain')],
|
||
["IP Address", host.ip],
|
||
["Puppet Environment", host.environment || host.fv('environment')],
|
||
["Host Architecture", host.arch || host.fv('hardwareisa')],
|
||
["Host Operating System", host.os || host.fv('operatingsystem') + " " + host.fv('operatingsystemrelease')],
|
||
["Host Group", host.hostgroup]].each do |th,td| %>
|
||
<tr>
|
||
<th><%= th %></th>
|
||
<td><%= td %></td>
|