Module: CampaignDeliveriesHelper
- Defined in:
- app/helpers/campaign_deliveries_helper.rb
Overview
== Schema Information
Table name: campaign_deliveries
id :integer not null, primary key
campaign_email_id :integer
audience_member_id :integer
communication_recipient_id :integer
state :string
created_at :datetime not null
updated_at :datetime not null
Instance Method Summary collapse
-
#campaign_delivery_command_options(campaign_delivery) ⇒ Array<String>
Builds the action links shown for a single campaign delivery row.
Instance Method Details
#campaign_delivery_command_options(campaign_delivery) ⇒ Array<String>
Builds the action links shown for a single campaign delivery row.
18 19 20 21 22 23 24 25 |
# File 'app/helpers/campaign_deliveries_helper.rb', line 18 def (campaign_delivery) [].tap do |opts| opts << link_to(fa_icon('wrench', text: 'Edit'), edit_campaign_delivery_path(campaign_delivery)) opts << link_to(fa_icon('envelope', text: 'Resend'), resend_campaign_delivery_path(campaign_delivery), data: { confirm: "Are you sure you want to resend this email?" }) opts << link_to(fa_icon("pencil", text: "Edit Email Address"), edit_campaign_delivery_path(campaign_delivery)) opts << link_to(fa_icon('gears', text: "Edit Email Preferences"), by_email_email_preferences_path(email: campaign_delivery.audience_member.email_address, return_path: campaign_delivery_path(campaign_delivery))) end end |