Sha256: 44ad3d23cd5ba68bc7619569307d7f6addbbe2e820581db932d6ce0925eefacc

Contents?: true

Size: 1.01 KB

Versions: 1

Compression:

Stored size: 1.01 KB

Contents

.email-contexts-show
  .header
    %h2.title Email Context

  .row
    .col-md-4
      %ul
        %li <b>From:</b> #{@ctx.from_email}
        %li <b>To Lead:</b> #{@ctx.lead.email}
        %li <b>Subject:</b> #{@ctx.subject}

    .col-md-4
      %ul
        %li <b>Template:</b> #{link_to @ctx.email_template.slug, email_template_path(@ctx.email_template), target: :_blank }
        %li <b>Layout:</b> #{@ctx.email_template.layout}

    .col-md-4
      %ul
        %li <b>Send at:</b> #{@ctx.send_at&.strftime('%Y-%m-%d %l:%M%P')}
        %li <b>Sent at:</b> #{@ctx.sent_at&.strftime('%Y-%m-%d %l:%M%P')}
        %li
          = button_to 'Send', email_context_send_path(@ctx), form_class: 'inline', :data => { :confirm => 'Are you sure?' }
          = link_to '[~]', edit_email_context_path(@ctx)

  - if @ctx.sent_at
    = raw @ctx.rendered_str
    = @ctx.tmpl

  - else
    = link_to 'i-src', email_context_iframe_path(@ctx), target: :_blank
    %iframe{ src: email_context_iframe_path(@ctx), width: '100%', height: '100%' }

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ish_manager-0.1.8.356 app/views/ish_manager/email_contexts/show.haml