Sha256: c7d743e31918408da0b92bf2013fac419edb1a676bc9c32e33268198d46d1abb

Contents?: true

Size: 1.84 KB

Versions: 6

Compression:

Stored size: 1.84 KB

Contents

<% title "Listing Mailing Lists" %>

<% if @mailing_lists.length > 0 %>

<table class="list" border="0" cellpadding="0" cellspacing="0">
  <tr class="title">
    <td>Name</td>
    <td>Active</td>
    <td>Unsubscribed</td>
    <td>Failed</td>
    <td>Pending</td>
    <td> </td>
    <td> </td>
    <td> </td>
  </tr>
<% @mailing_lists.each do |mailing_list| %>
	<tr class="<%= cycle('odd','even') %>">
    <td><%=h mailing_list.name %></td>
    <td align="right"> <%= link_to(mailing_list.subscriptions.active.size, mail_manager.contacts_path(mailing_list_id: mailing_list.id, status: 'active')) %> </td>
    <td align="right"> <%= link_to(mailing_list.subscriptions.unsubscribed.size, mail_manager.contacts_path(mailing_list_id: mailing_list.id, status: 'unsubscribed')) %> </td>
    <td align="right"> <%= link_to(mailing_list.subscriptions.failed_address.size, mail_manager.contacts_path(mailing_list_id: mailing_list.id, status: 'failed_address')) %> </td>
    <td align="right"> <%= link_to(mailing_list.subscriptions.pending.size, mail_manager.contacts_path(mailing_list_id: mailing_list.id, status: 'pending')) %> </td>
    <td><%= link_to 'Edit', mail_manager.edit_mailing_list_path(mailing_list), :class => 'button'  %><div class="linkbuttonEnding"></div></td>
    <td><%= link_to 'Delete', mailing_list, :confirm => 'Are you sure?', :method => :delete, :class => 'button' %><div class="linkbuttonEnding"></div></td>
    <td><%= link_to 'View Contacts', mail_manager.contacts_path(mailing_list_id: mailing_list.id), :class => 'button'  %><div class="linkbuttonEnding"></div></td>
  </tr>
<% end %>
</table>
<% else %>
No mailing lists exist.
<% end %>


<% @page_title = "Mailing Lists" %>
<%= content_for :page_navigation do %>
<div>
  <%= link_to "New Mailing List", mail_manager.new_mailing_list_path, :class => 'button' %><div class="linkbuttonEnding"></div>
</div>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
mail_manager-3.0.0 app/views/mail_manager/mailing_lists/index.html.erb
mail_manager-0.1.4 app/views/mail_manager/mailing_lists/index.html.erb
mail_manager-0.1.2 app/views/mail_manager/mailing_lists/index.html.erb
mail_manager-0.1.1 app/views/mail_manager/mailing_lists/index.html.erb
mail_manager-0.1.0 app/views/mail_manager/mailing_lists/index.html.erb
mail_manager-0.0.1 app/views/mail_manager/mailing_lists/index.html.erb