Skip to content

Instantly share code, notes, and snippets.

@ohadlevy
Created October 12, 2009 13:17
Show Gist options
  • Save ohadlevy/208378 to your computer and use it in GitHub Desktop.
Save ohadlevy/208378 to your computer and use it in GitHub Desktop.
diff --git a/app/helpers/hosts_helper.rb b/app/helpers/hosts_helper.rb
index 217fa7f..fc3e00a 100644
--- a/app/helpers/hosts_helper.rb
+++ b/app/helpers/hosts_helper.rb
@@ -4,7 +4,7 @@ module HostsHelper
return "N/A"
else
time = time_ago_in_words(record.last_report.getlocal)
- image_tag((record.error_count > 0 or record.no_report ? "false.png" : "true.png"), :size => "18x18") +
+ image_tag("#{record.error_count > 0 or record.no_report}.png", :size => "18x18") +
link_to(time, report_host_path(record))
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment