Sha256: 7d3e507e817d6dbfb2304b27878f50a075a53f0313898a7bfad5077d538e9952

Contents?: true

Size: 1.76 KB

Versions: 79

Compression:

Stored size: 1.76 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.data-table
      %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
                .date= pp_date ctx.send_at
                .time= pp_time ctx.send_at
            %td
              .datetime.padded= pp_date 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

79 entries across 79 versions & 1 rubygems

Version Path
wco_email-0.1.1.82 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.81 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.80 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.79 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.78 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.77 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.76 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.75 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.72 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.71 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.70 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.69 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.68 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.67 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.66 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.65 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.64 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.63 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.62 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.61 app/views/wco_email/contexts/index.haml