Sha256: 8a251df25d816ac09ecd0b83ccd7fec4f30e7c381e510b05b8741f8f0f4bc12c
Contents?: true
Size: 1.34 KB
Versions: 16
Compression:
Stored size: 1.34 KB
Contents
%p This notification will be sent to all rows from the = link_to(notification.report, effective_reports.admin_report_path(notification.report), target: '_blank') report at the time of sending. %p Tomorrow morning, #{pluralize(notification.notifiable_tomorrow_rows_count, 'rows')} notifications will be sent. .mb-2 = collapse('Show notification details') do = effective_table_with(notification) .mb-2 = collapse("Show report data") do %h4= notification.report.to_s = render 'admin/reports/report', report: notification.report - if notification.rows_count > 0 %p Using a random row from the data source, a preview of the notification follows: = card('Preview') do - resource = notification.report.collection.order('RANDOM()').first - rendered = notification.assign_renderer(self).render_email(resource) %table.table %tbody %tr %th To %td= rendered.fetch(:to) %tr %th From %td= rendered.fetch(:from) - if (cc = rendered[:cc]).present? %tr %th CC %td= cc - if (bcc = rendered[:bcc]).present? %tr %th BCC %td= bcc %tr %th Subject %td= rendered.fetch(:subject) %tr %td{colspan: 2} = simple_format(rendered.fetch(:body).to_s)
Version data entries
16 entries across 16 versions & 1 rubygems