Sha256: c01c2263f00f6a412eb1856131fde3f79c109b5681d2d6162f1246592b75d585
Contents?: true
Size: 728 Bytes
Versions: 11
Compression:
Stored size: 728 Bytes
Contents
module OverlappedButtonsHelper def expand_icon overlapped_button_icon :fullscreen, :expand end def restart_icon(data_placement='left') overlapped_button_icon :restart, :undo, data_placement end def format_icon overlapped_button_icon :format, :indent end def restart_guide_link(guide) link_to restart_icon('top'), guide_progress_path(guide), class: 'mu-content-toolbar-item mu-restart-guide', data: {confirm: t(:confirm_restart)}, method: :delete end def overlapped_button_icon(key, icon, data_placement='left') fa_icon(icon, title: t(key), class: 'fa-fw', role: 'button', 'aria-label': t(key), 'data-placement': data_placement) end end
Version data entries
11 entries across 11 versions & 1 rubygems