Sha256: a8ff3fe1750bce3435d45b9bc0a9525be856ae8cdcc7754083e139358d03d928
Contents?: true
Size: 747 Bytes
Versions: 1
Compression:
Stored size: 747 Bytes
Contents
module Sufia module PermissionsHelper def visibility_help help_link('generic_files/visibility', 'Visibility', 'Usage information for visibility') end def share_with_help help_link('generic_files/share_with', 'Share With', 'Usage information for sharing') end private def help_link(file, title, aria_label) link_to help_icon, '#', rel: 'popover', 'data-content' => capture_content(file), 'data-original-title' => title, 'aria-label' => aria_label end 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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sufia-6.7.0 | app/helpers/sufia/permissions_helper.rb |