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

15 lines
676 B
Plaintext
Raw Permalink Normal View History

2016-03-09 07:05:14 +00:00
<% @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">
2016-03-09 10:00:24 +00:00
<li><%= link_to t('edit'), edit_admin_certificate_path(certificate,:page => params[:page]) %></li>
2016-03-09 07:05:14 +00:00
<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 %>