personal-certificate/app/views/admin/certificates/_certificates.html.erb

15 lines
679 B
Plaintext

<% @certificates.each do |certificate| %>
<tr id="<%= dom_id certificate %>" class="with_action">
<td class="span3">
<%= link_to certificate.title, page_for_certificate(certificate), target: "blank"%>
<div class="quick-edit">
<ul class="nav nav-pills hide">
<li><%= link_to t('edit'), edit_admin_certificate_path(certificate.id,:page => params[:page]) %></li>
<li><%= link_to t(:delete_), admin_certificate_path(id: certificate.id, :page => params[:page]), method: :delete, data: { confirm: 'Are you sure?' } %></li>
</ul>
</div>
</td>
<td><%= certificate.issued_by %></td>
<td><%= certificate.member_profile.name rescue "" %></td>
</tr>
<% end %>