personal-course/app/views/admin/courses/_courses.html.erb

15 lines
625 B
Plaintext
Raw Normal View History

2015-12-29 11:35:44 +00:00
<% @courses.each do |course| %>
<tr id="<%= dom_id course %>" class="with_action">
<td class="span1"><%= course.year %></td>
<td class="span1">
<%= link_to course.title, page_for_course(course), target: "blank"%>
<div class="quick-edit">
<ul class="nav nav-pills hide">
<li><%= link_to t('edit'), edit_admin_course_path(course,:page => params[:page]) %></li>
<li><%= link_to t(:delete_), admin_course_path(id: course.id, :page => params[:page]), method: :delete, data: { confirm: 'Are you sure?' } %></li>
</ul>
</div>
</td>
<td><%= course.member_profile.name rescue "" %></td>
</tr>
<% end %>