Sha256: 8fad66179b3249a6142f0a40ee09d65a099d279f259943ac9888b331cc31d8cb

Contents?: true

Size: 757 Bytes

Versions: 9

Compression:

Stored size: 757 Bytes

Contents

module Refinery
  module Helpers
    module TagHelper

      # Returns <span class='help' title='Your Input'>(help)</span>
      # Remember to wrap your block with <span class='label_with_help'></span> if you're using a label next to the help tag.
      def refinery_help_tag(title='')
        "<span class='help' title='#{title}'>(#{t('shared.admin.help')})</span>".html_safe
      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 = {})
        image_tag "refinery/icons/#{filename}", {:width => 16, :height => 16}.merge(options)
      end

    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
refinerycms-0.9.8.9 vendor/refinerycms/core/lib/refinery/helpers/tag_helper.rb
refinerycms-0.9.8.8 vendor/refinerycms/core/lib/refinery/helpers/tag_helper.rb
refinerycms-0.9.8.7 vendor/refinerycms/core/lib/refinery/helpers/tag_helper.rb
refinerycms-0.9.8.6 vendor/refinerycms/core/lib/refinery/helpers/tag_helper.rb
refinerycms-0.9.8.5 vendor/refinerycms/core/lib/refinery/helpers/tag_helper.rb
refinerycms-0.9.8.4 vendor/refinerycms/core/lib/refinery/helpers/tag_helper.rb
refinerycms-0.9.8.3 vendor/refinerycms/core/lib/refinery/helpers/tag_helper.rb
refinerycms-0.9.8.2 vendor/refinerycms/core/lib/refinery/helpers/tag_helper.rb
refinerycms-0.9.8.1 vendor/refinerycms/core/lib/refinery/helpers/tag_helper.rb