|
|
|
@ -47,7 +47,7 @@
|
|
|
|
|
<% end%>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<% if activity.homework_type == 3 && activity.homework_detail_group.base_on_project == 1%>
|
|
|
|
|
<span class="c_red">系统提示:该作业要求各组长<%=link_to "创建项目", new_project_path(:host=>Setting.host_name),:class=>"c_red",:title=>"新建项目",:style=>"text-decoration:underline;"%>,组成员加入项目,然后由组长关联项目。谢谢配合!</span>
|
|
|
|
|
<span class="c_red">系统提示:该作业要求各组长<%=link_to "创建项目", "https://www.trustie.net/projects/new",:class=>"c_red",:title=>"新建项目",:style=>"text-decoration:underline;"%>,组成员加入项目,然后由组长关联项目。谢谢配合!</span>
|
|
|
|
|
<% elsif activity.homework_type == 3 && activity.homework_detail_group.base_on_project == 0%>
|
|
|
|
|
<span class="c_red">系统提示:该作业要求各组长提交作品,提交作品时请添加组成员。谢谢配合!</span>
|
|
|
|
|
<% end %>
|
|
|
|
@ -73,7 +73,7 @@
|
|
|
|
|
|
|
|
|
|
<% if activity.homework_type == 2 && is_teacher%>
|
|
|
|
|
<div class="homepagePostSubmit">
|
|
|
|
|
<%= link_to "模拟答题", new_user_commit_homework_users_path(homework_id: activity.id, is_test: true), class: 'c_blue test-program-btn', title: '教师可以通过模拟答题设置作业的标准答案' %>
|
|
|
|
|
<%= link_to "模拟答题", "https://www.trustie.net/new_user_commit_homework?homework_id="+activity.id.to_s + "&is_test=true", class: 'c_blue test-program-btn', title: '教师可以通过模拟答题设置作业的标准答案' %>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if activity.homework_type == 2%>
|
|
|
|
@ -129,7 +129,7 @@
|
|
|
|
|
<% if activity.student_works.count != 0 %>
|
|
|
|
|
<% sw = activity.student_works.reorder("created_at desc").first %>
|
|
|
|
|
<div class="mt10 homepagePostDeadline mb10">
|
|
|
|
|
# <%=time_from_now sw.created_at %><%= link_to sw.user.show_name, user_activities_path(sw.user_id), :class => "newsBlue ml5 mr5"%>提交了作品
|
|
|
|
|
# <%=time_from_now sw.created_at %><%= link_to sw.user.show_name, user_activities_url_in_org(sw.user_id), :class => "newsBlue ml5 mr5"%>提交了作品
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
@ -141,7 +141,7 @@
|
|
|
|
|
<% last_score = student_work_scores.first %>
|
|
|
|
|
<div>
|
|
|
|
|
<p class="mb10 fontGrey2"># <%=time_from_now last_score.created_at %>
|
|
|
|
|
<%= link_to last_score.user.show_name, user_activities_path(last_score.user_id), :class => "newsBlue ml5 mr5"%>评阅了作品,优秀排行:
|
|
|
|
|
<%= link_to last_score.user.show_name, user_activities_url_in_org(last_score.user_id), :class => "newsBlue ml5 mr5"%>评阅了作品,优秀排行:
|
|
|
|
|
</p>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
@ -155,7 +155,7 @@
|
|
|
|
|
<% student_works.each_with_index do |sw, i| %>
|
|
|
|
|
<div class="fl mr10 w100" style="text-align:center;">
|
|
|
|
|
<a href="javascript:void(0);" class="linkBlue"><%= link_to image_tag(url_to_avatar(User.find sw.user_id), :width => "40", :height => "40"), student_work_index_path(:homework => activity.id), :alt => "学生头像" %>
|
|
|
|
|
<p class="w100 hidden"><%= link_to sw.user.show_name, student_work_index_path(:homework => activity.id)%></p>
|
|
|
|
|
<p class="w100 hidden"><%= link_to sw.user.show_name, student_work_index_url_in_org(activity.id)%></p>
|
|
|
|
|
</a>
|
|
|
|
|
<% score = sw.respond_to?("score") ? sw.score : (sw.final_score || 0) - sw.absence_penalty - sw.late_penalty %>
|
|
|
|
|
<p class="fontGrey2">分数:<span class="c_red"><%=format("%.1f",score.to_i<0 ? 0 : score.to_i) %>分</span></p>
|
|
|
|
@ -165,7 +165,7 @@
|
|
|
|
|
<% end %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% if student_works.count > 5 %>
|
|
|
|
|
<%= link_to "更多>>", student_work_index_path(:homework => activity.id),:class=>'linkGrey2 fl ml50',:style=>'margin-top:60px;'%>
|
|
|
|
|
<%= link_to "更多>>", student_work_index_url_in_org(activity.id),:class=>'linkGrey2 fl ml50',:style=>'margin-top:60px;'%>
|
|
|
|
|
<% end %>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</div>
|
|
|
|
@ -177,7 +177,7 @@
|
|
|
|
|
<% sort_projects = project_sort_update projects %>
|
|
|
|
|
<div class="mt10 relatePWrap" id="relatePWrap_<%=user_activity_id %>">
|
|
|
|
|
<div class="mr5 fontGrey2">
|
|
|
|
|
# <%=time_from_now sort_projects.first.updated_at %><%= link_to User.find(sort_projects.first.user_id).show_name, user_activities_path(sort_projects.first.user_id), :class => "newsBlue ml5 mr5"%>更新了项目,最近更新:
|
|
|
|
|
# <%=time_from_now sort_projects.first.updated_at %><%= link_to User.find(sort_projects.first.user_id).show_name, user_activities_url_in_org(sort_projects.first.user_id), :class => "newsBlue ml5 mr5"%>更新了项目,最近更新:
|
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<% sort_projects.each_with_index do |pro, i| %>
|
|
|
|
|