Created
September 5, 2009 14:43
-
-
Save ohadlevy/181419 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 5a1c338..e5b5ada 100644 | |
--- a/app/helpers/hosts_helper.rb | |
+++ b/app/helpers/hosts_helper.rb | |
@@ -18,7 +18,8 @@ module HostsHelper | |
image = "#{os}.jpg" | |
title = os | |
end | |
- return image_tag("hosts/#{image}", :size => "18x18", :title => title) + " #{record.shortname}" | |
+ image_tag("hosts/#{image}", :size => "18x18", :title => title) + | |
+ link_to(record.shortname, :action => "edit", :id => record) | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment