diff --git a/app/controllers/bids_controller.rb b/app/controllers/bids_controller.rb index 8e57f9f2b..5b17271af 100644 --- a/app/controllers/bids_controller.rb +++ b/app/controllers/bids_controller.rb @@ -515,6 +515,7 @@ class BidsController < ApplicationController INNER JOIN homework_evaluations ON homework_evaluations.homework_attach_id = homework_attaches.id WHERE homework_attaches.bid_id = #{@bid.id} AND homework_evaluations.user_id = #{User.current.id}) AS table1 WHERE table1.m_score IS NULL") + @is_student_batch_homework = true end @homework_list = paginateHelper all_homework_list,10 diff --git a/app/views/bids/_homework_list.html.erb b/app/views/bids/_homework_list.html.erb index db61bf93d..81843479f 100644 --- a/app/views/bids/_homework_list.html.erb +++ b/app/views/bids/_homework_list.html.erb @@ -47,7 +47,7 @@
高校课程实践社区 | -<%= l(:label_user_location) %> : | - -
<%= link_to request.host()+"/courses", :controller => 'courses', :action => 'index'%> | -<%=link_to "主页", home_path %> > <%=link_to l(:label_course_practice), :controller => 'courses', :action => 'index' %> > - <%= link_to(@homework.bid.courses.first.name.to_s, homework_course_path(@homework.bid.courses.first)) if @homework.bid.courses.first%> > - <%=link_to(@homework.bid.name, respond_path(@homework.bid)) %> > <%= link_to "修改作业",edit_homework_attach_path(@homework)%> |
-
<%=raw l(:label_edit_homework)%>
高校课程实践社区 | -- - <%= l(:label_user_location) %> : - - | - -
- - <%= link_to request.host()+"/courses", :controller => 'courses', :action => 'index'%> - - | -
- - <%=link_to "主页", home_path %> > - <%=link_to l(:label_course_practice), :controller => 'courses', :action => 'index' %> > - - <%= link_to(@bid.courses.first.name.to_s, homework_course_path(@bid.courses.first)) if @bid.courses.first%> - > - <%=link_to(@bid.name, respond_path(@bid)) %> > - - <%= link_to "创建作业", new_homework_attach_path(@bid)%> - - - |
-
<%=h l(:label_new_homework)%>
diff --git a/public/stylesheets/css.css b/public/stylesheets/css.css index c282fe4b7..2a1ae81a7 100644 --- a/public/stylesheets/css.css +++ b/public/stylesheets/css.css @@ -59,6 +59,10 @@ ul.wlist{ float:right; border-bottom:none; height:30px; margin-top:20px; } .dis ul li.wname02 a{ width:200px; font-size:14px; color:#595959; padding:20px 0 0 15px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;} .dis ul li.wmine{ margin:12px 0 0 10px;} .dis ul li.wmine a{ color:#3d7ec2; text-align:center; width:50px; font-weight: bold;} +.wzan{ margin:15px 0 0 25px; width:32px; height:44px;} +.wzan a{ display: block;} +a.wzan_img{background:url(images/pic_zan.png) 0 -59px no-repeat; display:block; height:31px; width:30px; color:#fff;} +a.wzan_visited{background:url(images/pic_zan.png) 0 0 no-repeat;} .msg_box{ width:693px; border-bottom:1px dashed #CCC; padding-top:20px;} .msg_box h4{ margin-left:15px;border-style: none;} diff --git a/public/stylesheets/images/pic_zan.png b/public/stylesheets/images/pic_zan.png new file mode 100644 index 000000000..bd7ab3478 Binary files /dev/null and b/public/stylesheets/images/pic_zan.png differ