diff --git a/app/views/layouts/_project_info.html.erb b/app/views/layouts/_project_info.html.erb
index 60fc6f96d..98670dba0 100644
--- a/app/views/layouts/_project_info.html.erb
+++ b/app/views/layouts/_project_info.html.erb
@@ -9,13 +9,13 @@
<%= image_tag(url_to_avatar(@course), :width => "60", :height => "60") %>
-
<%= @course.is_public == 0 ? "私有课程" : "公开课程" %>
+
ID:<%= @course.id%><%= @course.is_public == 0 ? "(私有)" : "(公开)" %>
<% if @course.id == 370 %>

<% end %>
-ID:<%= @course.id%>
+
加入课程
-
- <%= link_to("", student_work_path(work),:method => 'delete', :confirm => l(:text_are_you_sure), :class => "pic_del") %>
-
-
- <%= link_to "",new_student_work_path(:homework => @homework.id),:class => "pic_edit"%>
-
- <% end%>
- <% if @homework.homework_detail_manual.comment_status == 3 && work.user != User.current%>
-
-
- <%= render :partial => 'student_work_praise' %>
-
- <% end%>
-
-
-
- 编程代码:
- <%= work.description if work.description%>
-
-
-
-
-
-
-
- 测试结果:
-
-
- <% work.student_work_tests.each_with_index do |test, index| %>
-
-
- 第<%= work.student_work_tests.count - index%>次测试
-
-
- <%= test.created_at.to_s(:db) %>
-
-
-
- <% if test.status.to_i == -2 %>
-
- <%= test.results.first %>
-
- <% else %>
-
-
- <% test.results.each_with_index do |x, i| %>
- -
- 测试<%=i+1%>
- <% if x["status"].to_i != 0 %>
- 测试错误!
- 您的输出:
- <%=x["result"]%>
- 正确输出:
- <%=x["output"]%>
-
- <% else %>
- 测试正确!
-
- <% end %>
-
- <% end %>
-
-
- <% end %>
- <% end %>
-
-
-
-
- <% if @is_teacher || (@homework.homework_detail_manual.comment_status == 2 && work.user != User.current )%>
-
-
- <%= render :partial => 'add_score',:locals => {:work => work,:score => score}%>
-
- <% end%>
-
-
-
-
-
- <%= render :partial => 'student_work/revise_attachment', :locals => {:work => work} %>
-
-
-
-
- <%student_work_scores.each do |student_score|%>
-
- <%= render :partial => 'student_work_score',:locals => {:score => student_score,:is_last => student_score == student_work_scores.last}%>
-
- <% end%>
-
-
-
收起
-
-
-
+
+
+
+
+
+ <%= render :partial => 'student_work/revise_attachment', :locals => {:work => work} %>
+
+
+
+
+ <%student_work_scores.each do |student_score|%>
+
+ <%= render :partial => 'student_work_score',:locals => {:score => student_score,:is_last => student_score == student_work_scores.last}%>
+
+ <% end%>
+
+
+
+
收起
+
+
+
diff --git a/app/views/student_work/_show.html.erb b/app/views/student_work/_show.html.erb
index 662ddece4..d66a30718 100644
--- a/app/views/student_work/_show.html.erb
+++ b/app/views/student_work/_show.html.erb
@@ -1,139 +1,140 @@
-
-
- <% is_teacher = User.current.allowed_to?(:as_teacher, @homework.course) || User.current.admin? %>
- <% if @homework.homework_type != 3 %>
- <% is_my_work = work.user == User.current%>
- <% else %>
- <% pro = @homework.student_work_projects.where(:user_id => User.current.id).first %>
- <% is_my_work = pro && pro.student_work_id == work.id%>
- <% end %>
-
- -
- 上交时间:
- <%=format_time work.created_at %>
-
-
- <% if work.user == User.current && Time.parse(@homework.end_time.to_s).strftime("%Y-%m-%d") >= Time.now.strftime("%Y-%m-%d") %>
-
- -
- <%= link_to("", student_work_path(work),:method => 'delete', :confirm => l(:text_are_you_sure), :class => "pic_del",:title=>"删除") %>
-
- -
- <%= link_to "",edit_student_work_path(work),:class => "pic_edit",:title => "修改"%>
-
- <% end%>
- <% if @homework.homework_detail_manual.comment_status == 3 && !is_my_work %>
-
- -
- <%= render :partial => 'student_work_praise' %>
-
- <% end%>
-
-
-
-
- <% if @homework.homework_type == 3 && work.student_work_projects && (@homework.homework_detail_manual.comment_status != 2 || is_my_work || is_teacher ) %>
-
- -
- 参与人员:
- <%= link_to(work.user.show_name+"(组长)", user_path(work.user.id), :class => "linkBlue" )%>
- <% members = work.student_work_projects.where("is_leader = 0") %>
- <% members.each do |member| if !members.empty? %>
- 、<%=link_to((User.find member.user_id).show_name, user_path(member.user.id), :class => "linkBlue" ) %>
- <% end %>
- <% end %>
-
- <% if @homework.homework_detail_group.base_on_project == 1 %>
- -
- 关联项目:
- <% if work.project.is_public || User.current.member_of?(work.project) || User.current.admin? %>
- <%= link_to( work.project.name, project_path(work.project.id), :class => "linkBlue" )%>
- <% else %>
- <%=work.project.name %>
- <% end %>
- <%#= link_to( work.project.name, project_path(work.project.id), :class => "linkBlue" )%>
- (综合评分:<%=work.project.project_score.score.to_i %>)
-
- <% end %>
- <% end%>
-
- -
- 内容:
-
- <%= text_format(work.description) if work.description%>
-
-
-
- -
- 附件:
- <% com_attachments = work.attachments.where("attachtype IS NULL OR attachtype <> 7") %>
- <% if com_attachments.empty?%>
- 尚未提交附件
- <% else%>
-
- <%= render :partial => 'work_attachments_status', :locals => {:attachments => com_attachments, :status => @homework.homework_detail_manual.comment_status} %>
-
- <% end%>
-
-
- -
- <% if @is_teacher || (@homework.homework_detail_manual.comment_status == 2 && !is_my_work)%>
-
-
- <%= render :partial => 'add_score',:locals => {:work => work,:score => score}%>
-
- <% end%>
-
-
-
-
-
- <%= render :partial => 'student_work/revise_attachment', :locals => {:work => work} %>
-
-
-
-
- <%student_work_scores.each do |student_score|%>
-
- <%= render :partial => 'student_work_score',:locals => {:score => student_score,:is_last => student_score == student_work_scores.last}%>
-
- <% end%>
-
-
-
收起
-
-
-
\ No newline at end of file
diff --git a/app/views/student_work/_work_attachments_status.html.erb b/app/views/student_work/_work_attachments_status.html.erb
index c4b2a795e..6a8591197 100644
--- a/app/views/student_work/_work_attachments_status.html.erb
+++ b/app/views/student_work/_work_attachments_status.html.erb
@@ -1,7 +1,7 @@
<% attachments.each_with_index do |attachment,i| %>
-
+
<%= link_to_short_attachment attachment,:length=> 58, :class => 'hidden link_file_a fl newsBlue mw360', :download => true -%>