personal_other_paper/app/views/admin/other_papers/_other_papers.html.erb

16 lines
767 B
Plaintext

<% @other_papers.each do |other_paper| %>
<tr id="<%= dom_id other_paper %>" class="with_action">
<td>
<%= link_to other_paper.title, page_for_other_paper(other_paper), target: "blank" %>
<div class="quick-edit">
<ul class="nav nav-pills hide">
<li><%= link_to t('edit'), edit_admin_other_paper_path(other_paper,:page => params[:page]) %></li>
<li><%= link_to t(:delete_), admin_other_paper_path(id: other_paper.id, :page => params[:page]), method: :delete, data: { confirm: 'Are you sure?' } %></li>
</ul>
</div>
</td>
<td> <%= other_paper.issue_date.strftime('%Y/%m') rescue "" %> </td>
<td> <%= other_paper.newsletter %> </td>
<td> <%= other_paper.display_field("member_profile").html_safe rescue "" %> </td>
</tr>
<% end %>