Sha256: c67c88e0886f2f8bb31c6b0fb6bfe170ff94bd4c864e0456e6175b7971f02196

Contents?: true

Size: 1.55 KB

Versions: 2

Compression:

Stored size: 1.55 KB

Contents

.email-contexts-index.padded

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


  .W0
    = render 'paginate', resource: @ctxs, param_name: :email_contexts_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
              - 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
              = ctx.from_email ? ctx.from_email : "t| #{ctx.tmpl.from_email}"
            %td= ctx.to_email
            %td
              = link_to email_context_path(ctx) do
                = ctx.subject ? ctx.subject : "t| #{ctx.tmpl.subject}"
            %td= ctx.email_template.slug
            %td= pp_date ctx.send_at
            %td= pp_date ctx.sent_at


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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ish_manager-0.1.8.403 app/views/ish_manager/email_contexts/index.haml
ish_manager-0.1.8.402 app/views/ish_manager/email_contexts/index.haml