Sha256: 63920384ea42a3fc96411d45fb12c08a30d4bbd61d68f55451a9458e110e5e95

Contents?: true

Size: 1.06 KB

Versions: 41

Compression:

Stored size: 1.06 KB

Contents

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

  .row
    .col-md-6
      %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}
        %hr
        %li <b>From:</b> #{@ctx.from_email}
        %li <b>To Lead:</b> #{link_to @ctx.lead.email, lead_path(@ctx.lead)}
        %li <b>Subject:</b> #{@ctx.subject}


    .col-md-6
      %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', send_immediate_email_context_path(@ctx), form_class: 'inline', :data => { :confirm => 'Are you sure?' }
          = link_to '[~]', edit_email_context_path(@ctx)

  .max-width
    - 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

41 entries across 41 versions & 1 rubygems

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