Sha256: 8e4704ae4e1355d9ea370201f1b0b1ae6d7a9fc2629757611b80bca573a38b43
Contents?: true
Size: 749 Bytes
Versions: 5
Compression:
Stored size: 749 Bytes
Contents
module Sufia module PermissionsHelper def visibility_help help_link('generic_files/visibility', 'Visibility', 'Useage information for visibility') end def share_with_help help_link('generic_files/share_with', 'Share With', 'Useage 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
5 entries across 5 versions & 1 rubygems