Skip to content

Commit

Permalink
title was set wrongly on host show page, added icon for OS's in host …
Browse files Browse the repository at this point in the history
…lists
  • Loading branch information
ohadlevy committed Feb 22, 2011
1 parent 1282328 commit 4d1d914
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/hosts/_minilist.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<% end -%>
<%=name_column(host) %>
</td>
<td><%=h host.try(:os) %></td>
<td><%=icon(host.os, :size => "18x18", :title => host.os.to_s) + " " + host.os.to_s if host.os %></td>
<td><%=h host.try(:environment) %></td>
<td><%=h host.try(:model) %></td>
<td><%=h host.try(:hostgroup) %></td>
Expand Down
4 changes: 3 additions & 1 deletion app/views/hosts/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<% gcharts_script %>
<% title (icon(@host.os) + @host.to_label) %>
<% title @host.to_label, false %>
<h1><%= icon(@host.os) + @host.to_label %></h1>

<span class="title_action">
<%= link_to_if_authorized "Edit", hash_for_edit_host_path(:id => @host), :title => "Edit your host" %> |
<%= link_to_if_authorized "Facts", hash_for_fact_values_path("search[host_id_eq]" => @host.id), :title => "Browse host facts" %> |
Expand Down

0 comments on commit 4d1d914

Please sign in to comment.