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
subscriber_id :integer
communication_recipient_id :integer
state :string
created_at :datetime not null
updated_at :datetime not null

Instance Method Summary collapse

Instance Method Details

#campaign_delivery_command_options(campaign_delivery) ⇒ Object



15
16
17
18
19
20
21
22
# File 'app/helpers/campaign_deliveries_helper.rb', line 15

def campaign_delivery_command_options(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.subscriber.email_address, return_path: campaign_delivery_path(campaign_delivery)))
    end
end