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

Version Path
ish_manager-0.1.8.346 app/views/ish_manager/email_contexts/show.haml
ish_manager-0.1.8.345 app/views/ish_manager/email_contexts/show.haml
ish_manager-0.1.8.344 app/views/ish_manager/email_contexts/show.haml
ish_manager-0.1.8.343 app/views/ish_manager/email_contexts/show.haml
ish_manager-0.1.8.342 app/views/ish_manager/email_contexts/show.haml
ish_manager-0.1.8.341 app/views/ish_manager/email_contexts/show.haml
ish_manager-0.1.8.340 app/views/ish_manager/email_contexts/show.haml
ish_manager-0.1.8.339 app/views/ish_manager/email_contexts/show.haml
ish_manager-0.1.8.338 app/views/ish_manager/email_contexts/show.haml
ish_manager-0.1.8.337 app/views/ish_manager/email_contexts/show.haml
ish_manager-0.1.8.336 app/views/ish_manager/email_contexts/show.haml
ish_manager-0.1.8.335 app/views/ish_manager/email_contexts/show.haml
ish_manager-0.1.8.334 app/views/ish_manager/email_contexts/show.haml
ish_manager-0.1.8.333 app/views/ish_manager/email_contexts/show.haml
ish_manager-0.1.8.332 app/views/ish_manager/email_contexts/show.haml
ish_manager-0.1.8.331 app/views/ish_manager/email_contexts/show.haml
ish_manager-0.1.8.330 app/views/ish_manager/email_contexts/show.haml