Sha256: f8eab28744afe710030fddd71a90e8045c73c57d0a76ea18670a368d951d4a1e

Contents?: true

Size: 1.67 KB

Versions: 11

Compression:

Stored size: 1.67 KB

Contents

.email-contexts-index.padded

  .header.collapse-expand-trash#emailContextsIndex
    %h2.title
      - if my_truthy? params[:sent]
        = link_to '[notsent]', email_contexts_path({ sent: false })
        <u>sent</u>
      - else
        <u>notsent</u>
        = link_to '[sent]', email_contexts_path({ sent: true })
      Email Contexts (#{@ctxs.length})
      - if @lead
        For lead `#{@lead.name}`
      = link_to '[+]', new_email_context_path


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

    %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
      %tbody
        - @ctxs.each do |ctx|
          %tr
            %td.actions
              - if ctx.sent_at
                [~]
              - else
                = link_to '[~]', edit_email_context_path(ctx)
              = button_to '[x]', email_context_path(ctx), method: :delete, 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, lead_path(ctx.lead)
            %td
              = link_to email_context_path(ctx) do
                = ctx.subject ? ctx.subject : "t| #{ctx.tmpl.subject}"
            %td= ctx.email_template.slug
            %td.send_at
              .a= pp_date ctx.send_at
              .a= pp_time ctx.send_at
            %td= pp_date ctx.sent_at


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

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
ish_manager-0.1.8.440 app/views/ish_manager/email_contexts/index.haml
ish_manager-0.1.8.439 app/views/ish_manager/email_contexts/index.haml
ish_manager-0.1.8.438 app/views/ish_manager/email_contexts/index.haml
ish_manager-0.1.8.437 app/views/ish_manager/email_contexts/index.haml
ish_manager-0.1.8.436 app/views/ish_manager/email_contexts/index.haml
ish_manager-0.1.8.435 app/views/ish_manager/email_contexts/index.haml
ish_manager-0.1.8.434 app/views/ish_manager/email_contexts/index.haml
ish_manager-0.1.8.433 app/views/ish_manager/email_contexts/index.haml
ish_manager-0.1.8.432 app/views/ish_manager/email_contexts/index.haml
ish_manager-0.1.8.431 app/views/ish_manager/email_contexts/index.haml
ish_manager-0.1.8.430 app/views/ish_manager/email_contexts/index.haml