|
|
|
@ -52,7 +52,7 @@
|
|
|
|
|
<%= link_to(course.name.to_s, homework_course_path(course)) if course %>
|
|
|
|
|
</span>
|
|
|
|
|
>
|
|
|
|
|
<%= link_to(@bid.name, respond_path(@bid)) %>
|
|
|
|
|
<%= link_to(@bid.name, course_for_bid_path(@bid)) %>
|
|
|
|
|
</p>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
@ -87,8 +87,7 @@
|
|
|
|
|
<tr>
|
|
|
|
|
<td style=" word-wrap: break-word; word-break: break-all;font-size: 16px;text-align: center">
|
|
|
|
|
<span style=" color:#ed8924">
|
|
|
|
|
<!-- modified by zjc 添加超链接 -->
|
|
|
|
|
<strong><%=link_to(@bid.name, respond_path(@bid)) %></strong>
|
|
|
|
|
<strong><%=link_to(@bid.name, course_for_bid_path(@bid)) %></strong>
|
|
|
|
|
</span>
|
|
|
|
|
</td>
|
|
|
|
|
</tr>
|
|
|
|
@ -197,26 +196,6 @@
|
|
|
|
|
<!-- end -->
|
|
|
|
|
</div>
|
|
|
|
|
<div id="content">
|
|
|
|
|
|
|
|
|
|
<div class="tabs_new">
|
|
|
|
|
<ul>
|
|
|
|
|
<li>
|
|
|
|
|
<%= link_to l(:label_question_student), {:controller => 'bids', :action => 'show'}, :class => link_class(:respond) %>
|
|
|
|
|
</li>
|
|
|
|
|
<% if User.current.member_of_course? course %>
|
|
|
|
|
<li>
|
|
|
|
|
<% if User.current.logged? && course && (!Member.where('user_id = ? and course_id = ?', User.current.id, course.id).first.nil? && (Member.where('user_id = ? and course_id = ?', User.current.id, course.id).first.roles&Role.where('id = ? or id = ? or id =?', 5, 10, 7)).size >0) %>
|
|
|
|
|
<%= link_to l(:label_homework_commit), course_for_bid_path, :class => link_class(:course) %>
|
|
|
|
|
<% else %>
|
|
|
|
|
<%= link_to l(:label_homework_info), course_for_bid_path, :class => link_class(:course) %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</li>
|
|
|
|
|
<% end %>
|
|
|
|
|
<!-- <li><%#= link_to l(:label_homework_statistics), {:controller => 'bids', :action => 'homework_statistics'}, :class => link_class(:homework_statistics) %></li> -->
|
|
|
|
|
<!-- <li><%#= link_to l(:label_homework_respond), {:controller => 'bids', :action => 'homework_respond'}, :class => link_class(:homework_respond) %></li>-->
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<%= yield %>
|
|
|
|
|
<%= call_hook :view_layouts_base_content %>
|
|
|
|
|
<div style="clear:both;"></div>
|
|
|
|
|