Sha256: ea793ce45a9284a61ad4921f18c25fe9f557a1543dd9164bc27b2ce0fd9a6673

Contents?: true

Size: 316 Bytes

Versions: 41

Compression:

Stored size: 316 Bytes

Contents

module ResetButtonHelper
  def restart_icon
    fa_icon('undo', title: t(:restart), class: 'fa-fw', role: 'button', tabindex: '0', 'aria-label': t(:restart))
  end

  def restart_guide_link(guide)
    link_to restart_icon, guide_progress_path(guide), data: {confirm: t(:confirm_restart)}, method: :delete
  end

end

Version data entries

41 entries across 41 versions & 1 rubygems

Version Path
mumuki-laboratory-5.1.0 app/helpers/reset_button_helper.rb