From d0c9390e915be65182157af80a1c8acfea41763d Mon Sep 17 00:00:00 2001 From: sw <939547590@qq.com> Date: Fri, 20 Jun 2014 10:52:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BB=80=E4=B9=88=E6=98=AF?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E9=93=BE=E6=8E=A5=E3=80=82=E7=82=B9=E5=87=BB?= =?UTF-8?q?=E4=BB=80=E4=B9=88=E6=98=AF=E9=A1=B9=E7=9B=AE=20=E5=AE=9E?= =?UTF-8?q?=E7=8E=B0jQuary=E7=AA=97=E5=B8=98=E6=95=88=E6=9E=9C=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E8=A7=A3=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/bids/_homework.html.erb | 39 +++++++++++++++++++++++++++---- 1 file changed, 34 insertions(+), 5 deletions(-) diff --git a/app/views/bids/_homework.html.erb b/app/views/bids/_homework.html.erb index 11b478199..d967d6231 100644 --- a/app/views/bids/_homework.html.erb +++ b/app/views/bids/_homework.html.erb @@ -21,6 +21,12 @@ $.globalEval(submit_homework()); return false; } + + function show() + { + $("#what_is_project_div").slideToggle(); + + } <% if User.current.logged? && (!Member.where('user_id = ? and project_id = ?', User.current.id, @bid.courses.first.id).first.nil? && @@ -32,11 +38,34 @@ <% end %> -<% if @homework_list.empty? %> -
- 暂无学生提交作业! -
-<% end %> + + + + + + + + + +
+ <% if @homework_list.empty? %> +
+ 暂无学生提交作业! +
+ <% end %> +
+ +
+ + + +
<%= render :partial => 'homework_list', :locals => {:homework => @homework_list} %>