epaper/app/views/admin/e_paper_subscribers/_index.html.erb

32 lines
875 B
Plaintext
Raw Normal View History

2019-05-28 15:54:32 +00:00
<table class="table main-list">
<thead>
<tr class="sort-header">
<% @table_fields.each do |f| %>
<%= thead(f) %>
<% end %>
</tr>
</thead>
<tbody>
<% @subscribers.each do |subscriber| %>
<tr>
<td>
<%= subscriber.email rescue "" %>
<div class="quick-edit">
<ul class="nav nav-pills">
<li><a class="delete text-error" href="<%= admin_e_paper_subscriber_path(subscriber.id) %>" data-method="delete" data-confirm="Are you sure?"><%= t(:delete_) %></a></li>
</ul>
</div>
</td>
<td>
<%= subscriber.subscribed ? "Subscribed" : "Unsubscribed" %>
</td>
<td>
<%= t(subscriber.language) %>
</td>
</tr>
<% end %>
</tbody>
</table>
<div class="bottomnav clearfix" style="left: 81px;">
<%= content_tag :div, paginate(@subscribers), class: "pagination pagination-centered" %>
</div>