Sha256: 22afbc88b78c5d8516094634a7e111b0e3b82af4d3b744f33b8f2fcc98a917ef
Contents?: true
Size: 1.02 KB
Versions: 2
Compression:
Stored size: 1.02 KB
Contents
- content_for(:actions) do - if policy(Renalware::Letters::Mailshots::Mailshot).new? = link_to t("btn.add"), new_letters_mailshot_path, class: :button = within_new_admin_layout(title: "Mailshots") do table.toggleable.mailshots data-controller="toggle" thead th.togglers.noprint= rows_toggler th.col-width-date-time Created th.col-width-medium Description th.col-width-medium Author th.col-width-tiny Letter Count th Status th Last Error - mailshots.each do |mailshot| tbody tr td= row_toggler td= l(mailshot.created_at) td= mailshot.description td= mailshot.author td= mailshot.letters_count td class="mailshot-status mailshot-status--#{mailshot.status}" = mailshot.status td - if mailshot.last_error = mailshot.last_error&.gsub("\n", "<br>").truncate(1000).html_safe tr td(colspan=7) | Body: = mailshot.body.html_safe
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
renalware-core-2.1.1 | app/views/renalware/letters/mailshots/mailshots/index.html.slim |
renalware-core-2.1.0 | app/views/renalware/letters/mailshots/mailshots/index.html.slim |