mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-07 03:01:33 +00:00
@@ -2,12 +2,12 @@
|
||||
- content_for :page_actions do
|
||||
- if can? :notify_producers, @order_cycle
|
||||
%li
|
||||
- processed = @order_cycle.processed_at.present?
|
||||
- mails_sent = @order_cycle.mails_sent?
|
||||
- url = main_app.notify_producers_admin_order_cycle_path
|
||||
- confirm_msg = "#{t('.notify_producers_tip')} #{t(:are_you_sure)}"
|
||||
%a.button.icon-email.with-tip{ href: url, data: { method: 'post', confirm: confirm_msg }, 'data-powertip': t('.notify_producers_tip') }
|
||||
= processed ? t('.re_notify_producers') : t(:notify_producers)
|
||||
- if processed
|
||||
= mails_sent ? t('.re_notify_producers') : t(:notify_producers)
|
||||
- if mails_sent
|
||||
.badge.icon-ok.success
|
||||
|
||||
- content_for :page_title do
|
||||
|
||||
Reference in New Issue
Block a user