-
-
- <% user_name = is_teacher ? (homework.user.lastname + homework.user.firstname) : homework.user.login %>
-
- <%= image_tag(url_to_avatar(homework.user), :class => "avatar")%> |
-
-
-
-
-
- <%= link_to user_name, user_path(homework.user),{:style => "color:#727272"} %>
-
- |
-
-
-
- <% if (users_for_homework(homework).include?(User.current) || is_teacher) %>
- <%= link_to l(:button_edit), edit_homework_attach_path(homework) %>
- <% if homework.user == User.current || is_teacher %>
- <%= link_to(l(:label_bid_respond_delete), homework,
- method: :delete, :confirm => l(:text_are_you_sure)) %>
- <% end %>
- <% end %>
- |
-
-
-
- |
-
-
-
-
- 作品名称:
- <% if homework.name == nil || homework.name == "" %>
- <% homework_filename = homework.user.name + "提交的作业" %>
- <% else %>
- <% homework_filename = homework.name %>
- <% end %>
-
- <%= link_to homework_filename , homework_attach_path(homework)%>
-
- |
-
- 合作成员:
- <% homework_users = homework_user_of_homework(homework,is_teacher) %>
- <% if homework.users.count == 0 %>
- 无
- <% else %>
- <%= homework_users %>
- <% end %>
- |
-
- <% if Time.parse(@bid.deadline.to_s).strftime("%Y-%m-%d") < Time.parse(homework.created_at.to_s).strftime("%Y-%m-%d") %>
- 迟交
- <% end %>
- |
-
+
+
+ 作业列表页_老师界面
+
+ <%= stylesheet_link_tag 'css', :media => 'all' %>
+
-
-
- 开发项目:
- <% if homework.project != nil %>
-
- <%= link_to homework.project.name,project_path(homework.project.id)%>
-
- <% else %>
- 暂无
- <% end %>
- |
-
- 项目得分:
- ;">
- <%= homework.project.nil? ? "N/A" : project_scores(homework.project) %>
-
-
- |
-
+
+
+
+
+ - 未批作业
+ - 已改作业
+ - 全部作业
+ - 作业下载
+ - 留言(23)
-
-
- 提交文件:
- <% if is_evaluation || is_teacher%>
- <%= link_to "打包下载", :controller => "zipdown", :action => "download_user_homework",:homework => homework%>
- <% else %>
- 未开启互评功能作业不允许下载
- <% end %>
-
- |
-
- 互评得分:
- <%# student_homework_score = student_score_for_homework(homework) %>
- ;">
- <% score = homework.s_score.nil? ? "N/A" : format("%.2f",homework.s_score) %>
- <%= score %>
-
- <% if is_evaluation && is_student && (!users_for_homework(homework).include? User.current)%>
- <%= link_to "学生互评>>",homework_attach_path(homework) %>
- <% end %>
-
- |
-
-
-
- <% if is_evaluation || is_teacher%>
- <%= render :partial => 'app_link', :locals => {:attachments => homework.attachments} %>
- <% end %>
- |
-
- 终评得分:
- <%# totle_homework_score = score_for_homework(homework) %>
- <% totle_homework_score = format("%.2f",(homework.t_score.nil? ? 0.00 : homework.t_score) * ((@bid.proportion.nil? ? 60 : @bid.proportion) * 1.0 / 100) +
- (homework.s_score.nil? ? 0.00 : homework.s_score) * (1 - (@bid.proportion.nil? ? 60 : @bid.proportion) * 1.0 / 100)) %>
- ;">
- <% score = totle_homework_score == "0.00"? "N/A" : totle_homework_score %>
- <%= score %>
-
- <% if is_teacher %>
- <%= link_to "教师评分>>",homework_attach_path(homework) %>
- <% end %>
-
- |
-
-
- |
-
-