forked from jasder/forgeplus
28 lines
1.2 KiB
Plaintext
28 lines
1.2 KiB
Plaintext
<td><%= list_index_no((params[:page] || 1).to_i, no) %></td>
|
|
<td><%= course.id %></td>
|
|
<td class="text-left">
|
|
<%= link_to(course.name, "/courses/#{course.id}", target: '_blank') %>
|
|
</td>
|
|
<td><%= course.course_members_count %></td>
|
|
<td><%= get_attachment_count(course, 0) %></td>
|
|
<td><%= course.course_homework_count(1) %></td>
|
|
<td><%= course.course_homework_count(3) %></td>
|
|
<td><%= course.course_homework_count(4) %></td>
|
|
<td><%= course.exercises_count %></td>
|
|
<td><%= course.evaluate_count %></td>
|
|
<td><%= course.is_public == 1 ? "--" : "√" %></td>
|
|
<td><%= course.is_end ? "已结束" : "正在进行" %></td>
|
|
<td><%= course.school&.name %></td>
|
|
<td><%= course.teacher&.real_name %></td>
|
|
<td><%= course.created_at&.strftime('%Y-%m-%d %H:%M') %></td>
|
|
<td>
|
|
<%= check_box_tag :homepage_show,!course.homepage_show,course.homepage_show,remote:true,data:{id:course.id},class:"course-setting-form" %>
|
|
</td>
|
|
<td>
|
|
<%= check_box_tag :email_notify,!course.email_notify,course.email_notify,remote:true,data:{id:course.id},class:"course-setting-form" %>
|
|
</td>
|
|
<td class="action-container">
|
|
<% if course.is_delete == 0 %>
|
|
<%= delete_link '删除', admins_course_path(course, element: ".course-item-#{course.id}"), class: 'delete-course-action' %>
|
|
<% end %>
|
|
</td> |