Project

General

Profile

« Previous | Next » 

Revision f2cc32e4

Added by Ohad Levy over 14 years ago

  • ID f2cc32e4d8e0a695ef105130920972ed52ad1fca

fixes #76 - Foreman creates a link to a report even if the report is already deleted

View differences:

app/helpers/hosts_helper.rb
return nil if record.last_report.nil?
time = time_ago_in_words(record.last_report.getlocal)
image_tag("#{not (record.error_count > 0 or record.no_report)}.png", :size => "18x18") +
link_to(time, report_host_path(record))
link_to_if(record.reports.last, time, report_host_path(record))
end
def root_pass_form_column(record, field_name)

Also available in: Unified diff