Sha256: b494433c03506b6357202b039b771229cd564e982f433206cc765af1f0076405

Contents?: true

Size: 1.81 KB

Versions: 6

Compression:

Stored size: 1.81 KB

Contents

.email-contexts-index.padded

  %h5.flex-row.header.collapse-expand-trash#emailContextsIndex
    = render '/wco_email/contexts/header'

  .W0
    = render 'wco/paginate', resource: @ctxs, param_name: :ctxs_page, views_prefix: :wco

    %table.bordered
      %thead
        %tr
          %th.actions
          %th.from From
          %th.to To
          %th.subject Subject
          %th.template Template
          %th.send_at Send at
          %th.sent_at Sent at
          %th.unsubscribed_at Unsubscribed at
      %tbody
        - @ctxs.each do |ctx|
          %tr
            %td.actions.padded
              .flex-row
                - if ctx.sent_at || ctx.unsubscribed_at
                  \--
                - else
                  = link_to '[~]',    edit_context_path(ctx)
                  = button_to 'x',         context_path(ctx), method: :delete, form_class: :inline, data: { confirm: 'Are you sure?' }
                  = button_to 'send', send_context_path(ctx),                  form_class: :inline, data: { confirm: 'Are you sure?' }

            %td.from
              = ctx.from_email ? ctx.from_email : "t| #{ctx.tmpl.from_email}"
            %td.to
              = link_to ctx.lead.email, wco.lead_path(ctx.lead)
            %td
              = link_to context_path(ctx) do
                = ctx.subject ? ctx.subject : "t| #{ctx.tmpl.subject}"
            %td= ctx.email_template.slug
            %td.send_at.padded
              .datetime.p-1
                .date= pp_date ctx.send_at
                .time= pp_time ctx.send_at
            %td
              .datetime.p-1
                .date= pp_date ctx.sent_at
                .time= pp_time ctx.sent_at
            %td
              .datetime.padded= pp_date ctx.unsubscribed_at


    = render 'wco/paginate', resource: @ctxs, param_name: :ctxs_page, views_prefix: :wco

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
wco_email-0.1.1.89 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.88 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.86 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.85 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.84 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.83 app/views/wco_email/contexts/index.haml