Sha256: 01a045c8697f2d46b7c191698a1de63d73f9e188d52e427f5d1f61000e150a51

Contents?: true

Size: 496 Bytes

Versions: 28

Compression:

Stored size: 496 Bytes

Contents

module CurationConcerns
  module PermissionsHelper
    def help_link(file, title, aria_label)
      link_to help_icon, '#',
              data: { toggle: 'popover', content: capture_content(file), 'original-title' => title },
              'aria-label' => aria_label
    end

    private

      def capture_content(file)
        capture do
          render file
        end
      end

      def help_icon
        content_tag 'i', '', 'aria-hidden' => true, class: 'help-icon'
      end
  end
end

Version data entries

28 entries across 28 versions & 1 rubygems

Version Path
curation_concerns-1.0.0.beta4 app/helpers/curation_concerns/permissions_helper.rb
curation_concerns-1.0.0.beta3 app/helpers/curation_concerns/permissions_helper.rb
curation_concerns-1.0.0.beta2 app/helpers/curation_concerns/permissions_helper.rb
curation_concerns-1.0.0.beta1 app/helpers/curation_concerns/permissions_helper.rb
curation_concerns-0.14.0 app/helpers/curation_concerns/permissions_helper.rb
curation_concerns-0.14.0.pre4 app/helpers/curation_concerns/permissions_helper.rb
curation_concerns-0.14.0.pre3 app/helpers/curation_concerns/permissions_helper.rb
curation_concerns-0.14.0.pre2 app/helpers/curation_concerns/permissions_helper.rb
curation_concerns-0.14.0.pre1 app/helpers/curation_concerns/permissions_helper.rb
curation_concerns-0.13.1 app/helpers/curation_concerns/permissions_helper.rb
curation_concerns-0.13.0 app/helpers/curation_concerns/permissions_helper.rb
curation_concerns-0.12.0 app/helpers/curation_concerns/permissions_helper.rb
curation_concerns-0.12.0.pre9 app/helpers/curation_concerns/permissions_helper.rb
curation_concerns-0.12.0.pre8 app/helpers/curation_concerns/permissions_helper.rb
curation_concerns-0.12.0.pre7 app/helpers/curation_concerns/permissions_helper.rb
curation_concerns-0.12.0.pre6 app/helpers/curation_concerns/permissions_helper.rb
curation_concerns-0.12.0.pre5 app/helpers/curation_concerns/permissions_helper.rb
curation_concerns-0.12.0.pre4 app/helpers/curation_concerns/permissions_helper.rb
curation_concerns-0.12.0.pre3 app/helpers/curation_concerns/permissions_helper.rb
curation_concerns-0.12.0.pre2 app/helpers/curation_concerns/permissions_helper.rb