From ad6fbf6c9bf6a752f631d8fae6152ee4f9ed6ad7 Mon Sep 17 00:00:00 2001
From: sw <939547590@qq.com>
Date: Thu, 24 Sep 2015 09:25:56 +0800
Subject: [PATCH] =?UTF-8?q?=E7=82=B9=E5=87=BB=E4=BD=9C=E5=93=81=E5=90=8D?=
=?UTF-8?q?=E7=A7=B0=E3=80=81=E5=A7=93=E5=90=8D=E3=80=81=E5=AD=A6=E5=8F=B7?=
=?UTF-8?q?=E3=80=81=E6=97=B6=E9=97=B4=E5=88=97=E9=83=BD=E5=8F=AF=E4=BB=A5?=
=?UTF-8?q?=E5=B1=95=E5=BC=80=E4=BD=9C=E5=93=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../student_work/_evaluation_un_work.html.erb | 38 ++++++++++---------
public/javascripts/course.js | 11 ++++++
2 files changed, 31 insertions(+), 18 deletions(-)
diff --git a/app/views/student_work/_evaluation_un_work.html.erb b/app/views/student_work/_evaluation_un_work.html.erb
index bc9fe2e00..ff2420a1a 100644
--- a/app/views/student_work/_evaluation_un_work.html.erb
+++ b/app/views/student_work/_evaluation_un_work.html.erb
@@ -3,27 +3,29 @@
-
- <%= image_tag(url_to_avatar(student_work.user),width:"40", height: "40") %>
-
- -
- <% student_work_name = student_work.name.nil? || student_work.name.empty? ? student_work.user.show_name + '的作品' : student_work.name%>
-
- <%= link_to student_work_name, student_work_path(student_work),:remote => true,:title => student_work_name, :class => "linkGrey f14 StudentName break_word #{@homework.homework_type == 2 ? '' : 'width165'}"%>
-
-
- -
-
- -
- <%= student_work.user.show_name%>
-
- -
- <%= student_work.user.user_extensions.nil? ? "--" : student_work.user.user_extensions.student_id%>
-
-
+ <%= link_to(image_tag(url_to_avatar(User.current),:width =>"40",:height => "40"),user_activities_path(User.current.id))%>
+
+
-
+ <% student_work_name = student_work.name.nil? || student_work.name.empty? ? student_work.user.show_name + '的作品' : student_work.name%>
+
+ <%= link_to student_work_name,"javascript:void(0)" ,:title => student_work_name, :class => "linkGrey f14 StudentName break_word #{@homework.homework_type == 2 ? '' : 'width165'}"%>
+
+
+
-
+
+ -
+ <%= student_work.user.show_name%>
+
+ -
+ <%= student_work.user.user_extensions.nil? ? "--" : student_work.user.user_extensions.student_id%>
+
+
+
+
-
+
<%= Time.parse(format_time(student_work.created_at)).strftime("%m-%d %H:%M")%>
<% if Time.parse(@homework.end_time.to_s).strftime("%Y-%m-%d") < Time.parse(student_work.created_at.to_s).strftime("%Y-%m-%d") %>
[迟交]
diff --git a/public/javascripts/course.js b/public/javascripts/course.js
index b471ea89e..07a149adb 100644
--- a/public/javascripts/course.js
+++ b/public/javascripts/course.js
@@ -975,3 +975,14 @@ $(function(){
function new_homework_alert(){
alert("您好!课程内直接发布作业的功能正在改进中,请直接点击\n顶部导航栏的“作业”向本课程发送作业。谢谢!如有问\n题,可参见帮助中心。");
}
+
+function show_student_work(url){
+ $.get(
+ url,
+ {
+
+ },
+ function (data) {
+ }
+ );
+}