<%= translated_attribute newsletter.subject %> |
<%= l newsletter.created_at, format: :long if newsletter.created_at %> |
<%= l newsletter.sent_at, format: :long if newsletter.sent_at %> |
<% if newsletter.sent? %>
<%= "#{newsletter.total_deliveries} / #{newsletter.total_recipients}" %>
<% end %>
|
<% if allowed_to?(:update, :newsletter, newsletter: newsletter) && !newsletter.sent? %>
<%= icon_link_to "pencil", decidim_admin.edit_newsletter_path(newsletter), t("actions.edit", scope: "decidim.admin"), class: "edit" %>
<% end %>
<%= icon_link_to "eye", decidim_admin.newsletter_path(newsletter), t("actions.preview", scope: "decidim.admin"), class: "preview" %>
<% if allowed_to?(:destroy, :newsletter, newsletter: newsletter) && !newsletter.sent? %>
<%= icon_link_to "circle-x", decidim_admin.newsletter_path(newsletter), t("actions.destroy", scope: "decidim.admin"), method: :delete, data: { confirm: t(".confirm_delete") }, class: "action-icon--remove" %>
<% end %>
|
<% end %>