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.60 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.59 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.58 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.56 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.55 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.54 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.53 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.52 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.51 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.50 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.49 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.48 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.47 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.46 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.45 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.44 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.43 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.42 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.41 app/views/wco_email/contexts/index.haml
wco_email-0.1.1.40 app/views/wco_email/contexts/index.haml