This commit is contained in:
parent
82d72708dd
commit
9434ec69d2
|
@ -254,22 +254,7 @@
|
|||
<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 %>
|
||||
|
|
Loading…
Reference in New Issue