Sha256: 5dd6377b8d8defd517c6390648c5b0f5c5a7632e6a06198383e9691ce3672a7b

Contents?: true

Size: 1.88 KB

Versions: 2

Compression:

Stored size: 1.88 KB

Contents

%ul.breadcrumb
  %li
    Sequence
    %em
      = link_to @sequence.title, webui_sequence_path(:id => @sequence)
    %span.divider
      >
  %li 
    Entity
    %em
      = @context.model
      = "##{@entity.id}: #{@entity}"
  %li.pull-right
    = link_to toggle_subscription_webui_sequence_path do
      %i.icon.icon-edit
      = @subscription.active? ? "Unsubscribe" : "Subscribe"
    %span.divider
    = link_to webui_sequence_path do
      %i.icon.icon-arrow-left
      Back

- unless @subscription.processable?
  .alert
    This sequence 
    %strong
      will not be sent
    to this entity. See the status.

%h4 Status

%dl.dl-horizontal
  %dt Sequence enabled
  %dd
    - if @sequence.enabled?
      %i.icon.icon-ok
    - else
      %i.icon.icon-remove
  %dt Subscription active
  %dd
    - if @subscription.active?
      %i.icon.icon-ok
    - else
      %i.icon.icon-remove
  %dt Last processing:
  - if @subscription.last_processing_time
    %dd= @subscription.last_processing_time
  - else
    %dd Never
  %dt Scheduled processing
  %dd 
    = @subscription.next_processing_time || "None"
    - if @subscription.next_processing_time
      = "(#{"in " if @subscription.next_processing_time > Time.now}#{distance_of_time_in_words(@subscription.next_processing_time, Time.now)}#{" ago" if @subscription.next_processing_time < Time.now})"

.sequence-mailings
  %h6 Processed mailings

  = smart_listing_for(:processed_mailings) do |smart_listing|
    = smart_listing.render_list

  %h6 Pending mailings

  = smart_listing_for(:pending_mailings) do |smart_listing|
    = smart_listing.render_list

  %h4 Preview
  .previews
    - @sequence.mailings.each do |m|
      .preview{:id => "mailing-#{m.id}", :data => {:id => m.id}}
        %h6
          Mailing
          %strong= m.title
        %pre= @subscription.render_template m
  %br

%h4 Logs

= smart_listing_for(:logs) do |smart_listing|
  = smart_listing.render_list

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
maily_herald-webui-0.9.0 app/views/maily_herald/webui/sequences-old/subscription.html.haml
maily_herald-webui-0.8.0 app/views/maily_herald/webui/sequences-old/subscription.html.haml