Sha256: 8fafaaac268820b83a1a91568f0e60930df416fdcb906744815440b229fce0c5
Contents?: true
Size: 1.96 KB
Versions: 2
Compression:
Stored size: 1.96 KB
Contents
<%= title "Listing Mailings" %> <% if @mailings.length > 0 %> <table class="list" border="0" cellpadding="0" cellspacing="0"> <tr class="title"> <td>Subject</td> <td>Mailable Name</td> <td>Scheduled At</td> <td>Status</td> <td colspan="2"> </td> </tr> <% @mailings.each do |mailing| %> <tr class="<%= cycle('odd','even') %>"> <td><%=h mailing.subject %></td> <td><%=h mailing.mailable.name rescue 'N/A' %></td> <td><%=l(mailing.scheduled_at) rescue '' %></td> <td><b><%=h mailing.status %></b></td> <td align="center"><nobr><%= link_to 'Send Test', mail_manager.test_mailing_path(mailing), :id => 'Send_Test', :class => 'button' %></nobr></td> <td> <% if mailing.can_edit? %> <%= link_to 'Edit', mail_manager.edit_mailing_path(mailing), :class => 'button' %> <% if mailing.can_schedule? %> <%= link_to 'Schedule', mail_manager.schedule_mailing_path(mailing), :method => :put, :class => 'button', :confirm => "Are you sure you want to start the mailing at #{l(mailing.scheduled_at) rescue "N/A"}?" %> <% elsif mailing.can_cancel? %> <%= link_to 'Cancel', mail_manager.cancel_mailing_path(mailing), :method => :put, :class => 'button', :id => "cancel_mailing_#{mailing.id}" %> <% end %> <% end %> <% if mailing.messages.size > 0 %> <%= link_to 'Messages', mail_manager.mailing_messages_path(mailing), :class => 'button' %> <% end %> <% if mailing.bounces.size > 0 %> <%= link_to 'Bounces', mail_manager.bounces_path(:mailing_id => mailing.id), :class => 'button' %> <% end %> <%= link_to 'Delete', mail_manager.mailing_path(mailing), :method => :delete, :confirm => "Are you sure?", :class => 'button' %> </td> </tr> <% end %> </table> <% else %> No mailings exist.<br /><br /> <% end %> <%= content_for :page_navigation do %> <div> <%= will_paginate @mailings %> <%= link_to "New Mailing", mail_manager.new_mailing_path, :class => 'button' %> </div> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mail_manager-3.2.1 | app/views/mail_manager/mailings/index.html.erb |
mail_manager-3.2.0 | app/views/mail_manager/mailings/index.html.erb |