Sha256: 16f7ac0c425a0bf66c5f08b07381a35075088ff5b3244a1395ec1594a61a4266
Contents?: true
Size: 1.43 KB
Versions: 17
Compression:
Stored size: 1.43 KB
Contents
.email-contexts-show %ul %li <b>Type:</b> #{@email_ctx.type} %li <b>Title:</b> #{@email_ctx.title} %li <b>Template:</b> #{@email_ctx.email_template.slug} %li <b>From:</b> #{@email_ctx.from_email} %li <b>Subject:</b> #{@email_ctx.subject} - if @email_ctx.type == Ish::EmailContext::TYPE_SINGLE %li <b>To:</b> #{@email_ctx.to_email} %li <b>Template:</b> #{@email_ctx.email_template.slug} <b>Type:</b> #{@email_ctx.email_template.type} -# -# Yes sent -# - if @email_ctx.sent_at - if @email_ctx.type == Ish::EmailContext::TYPE_CAMPAIGN %li <b>C_Leads (#{@email_ctx.campaign_leads.length}):</b> - @email_ctx.campaign_leads&.each do |c_lead| = c_lead.lead.email = link_to '[view]', campaign_lead_path( c_lead ) , %li <b>Sent at:</b> #{@email_ctx.sent_at.strftime('%Y-%m-%d %l:%M%P')} - else # Draft - if @email_ctx.type == Ish::EmailContext::TYPE_CAMPAIGN %li <b>Leads (#{@email_ctx.leads.length}):</b> #{@email_ctx.leads.map { |p| p&.email }.join(", ") } %li = button_to 'Send', email_context_send_path(@email_ctx), form_class: 'inline', :data => { :confirm => 'Are you sure?' } = link_to '[~]', edit_email_context_path(@email_ctx) - if @email_ctx.sent_at = raw @email_ctx.rendered_str - else %iframe{ src: email_context_iframe_path(@email_ctx), width: '100%', height: '100%' }
Version data entries
17 entries across 17 versions & 1 rubygems