Created
October 12, 2009 13:17
-
-
Save ohadlevy/208378 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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