Skip to content
This repository has been archived by the owner on Mar 1, 2018. It is now read-only.

Commit

Permalink
Switching to name instead of hostname for display purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
rickychilcott committed Jun 20, 2013
1 parent 53ec950 commit fb9fdd0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/admin_mailer/computer_report.html.erb
@@ -1,5 +1,5 @@
<% report = @computer.managed_install_reports.last %>
<h2><%= @computer %> (<%= @computer.hostname%>) - <%= @computer.status%></h2>
<h2><%= @computer %> (<%= @computer.name%>) - <%= @computer.status%></h2>
<% ManagedInstallReport::LOG_ATTRIBUTES.each do |attribute_name| %>
<%= render :partial => 'managed_install_reports/report_log', :locals => {:attribute_name => attribute_name,:report => report} if report.send(attribute_name).present? %>
<% end %>
Expand Down
2 changes: 1 addition & 1 deletion app/views/computers/_computer_table.html.erb
Expand Up @@ -44,7 +44,7 @@
<%= link_to 'Edit', edit_computer_path(c.unit, c) %> |
<% end %>
<% if can? :destroy, c %>
<%= link_to 'Destroy', computer_path(c.unit, c) , :confirm => "Are you sure you want to destroy #{c.hostname}?", :method => :delete %><br />
<%= link_to 'Destroy', computer_path(c.unit, c) , :confirm => "Are you sure you want to destroy #{c.name}?", :method => :delete %><br />
<% end %>
<%= link_to 'Manifest', computer_path(c.unit, c, :format => :plist) %> |
<%= link_to 'Client Prefs', client_prefs_computer_path(c.unit, c, :format => :plist) %>
Expand Down

0 comments on commit fb9fdd0

Please sign in to comment.