diff --git a/changelog.md b/changelog.md
index 33dde34ec4..3aa6ce90a7 100644
--- a/changelog.md
+++ b/changelog.md
@@ -3,6 +3,7 @@
* Added `:per_page` option to `crudify` for overriding the number of items to display per page with will_paginate. [Josef Šimánek](https://github.com/simi)
* Deprecated `rake refinery:update` in favour of rails `generate refinerycms --update`. [Philip Arndt](https://github.com/parndt)
* Added `--skip-db` option to `bin/refinerycms` installer which doesn't automate any database creation/migration and skips the `rails generate refinerycms` generator. [Philip Arndt](https:/github.com/parndt)
+* Exchanged (help) links for the information.png 'refinery icon'. This will happen automatically if you used `refinery_help_tag`. [Philip Arndt](https://github.com/parndt)
* [See full list](https://github.com/resolve/refinerycms/compare/0.9.9.6...0.9.9.7)
## 0.9.9.6 [7 March 2011]
diff --git a/core/lib/refinery/helpers/tag_helper.rb b/core/lib/refinery/helpers/tag_helper.rb
index 15c1914fb6..b16800b3d4 100644
--- a/core/lib/refinery/helpers/tag_helper.rb
+++ b/core/lib/refinery/helpers/tag_helper.rb
@@ -2,17 +2,18 @@ module Refinery
module Helpers
module TagHelper
- # Returns (help)
+ # Returns
# Remember to wrap your block with if you're using a label next to the help tag.
def refinery_help_tag(title='')
title = h(title) unless title.html_safe?
- "(#{t('help', :scope => 'shared.admin')})".html_safe
+ refinery_icon_tag('information', :class => 'help', :tooltip => title)
end
# This is just a quick wrapper to render an image tag that lives inside refinery/icons.
# They are all 16x16 so this is the default but is able to be overriden with supplied options.
def refinery_icon_tag(filename, options = {})
+ filename = "#{filename}.png" unless filename.split('.').many?
image_tag "refinery/icons/#{filename}", {:width => 16, :height => 16}.merge(options)
end
diff --git a/core/public/stylesheets/refinery/refinery.css b/core/public/stylesheets/refinery/refinery.css
index 16827e43c6..22adfcba3f 100644
--- a/core/public/stylesheets/refinery/refinery.css
+++ b/core/public/stylesheets/refinery/refinery.css
@@ -1369,9 +1369,15 @@ input.button.close_dialog:active, a.button.close_dialog:active, #content a.butto
.hemisquare small {
font-size: 0.9em;
}
-.label_with_help label, .label_with_help span.help {
+.label_with_help {
+ vertical-align: middle;
+}
+.label_with_help label, .label_with_help span.help, .label_with_help img.help {
display: inline;
}
+.label_with_help img.help {
+ vertical-align: middle;
+}
.label_with_help span.help {
font-weight: normal;
margin-left: 3px;