Module: ResetButtonHelper
- Defined in:
- app/helpers/reset_button_helper.rb
Instance Method Summary collapse
Instance Method Details
#restart_guide_link(guide) ⇒ Object
6 7 8 |
# File 'app/helpers/reset_button_helper.rb', line 6 def restart_guide_link(guide) link_to restart_icon, guide_progress_path(guide), data: {confirm: t(:confirm_restart)}, method: :delete end |
#restart_icon ⇒ Object
2 3 4 |
# File 'app/helpers/reset_button_helper.rb', line 2 def restart_icon fa_icon('trash-o', title: t(:restart), class: 'fa-fw', role: 'button', tabindex: '0', 'aria-label': t(:restart)) end |