2013-08-30 09:34:21 +08:00
|
|
|
<!-- fq -->
|
2013-11-08 20:54:45 +08:00
|
|
|
<!--modified by huang-->
|
|
|
|
<div class="content-title-top">
|
|
|
|
<% if User.current.logged? && (User.current.admin? || (!Member.where('user_id = ? and project_id = ?', User.current.id, @project.id).first.nil? && (Member.where('user_id = ? and project_id = ?', User.current.id, @project.id).first.roles&Role.where('id = ? or id = ?', 3, 7)).size >0))%>
|
|
|
|
<%= link_to(l(:label_course_homework_new), {:controller => 'projects', :action => 'new_homework'}, :class => 'icon icon-add') %>
|
|
|
|
<% end %>
|
2013-08-30 09:34:21 +08:00
|
|
|
</div>
|
|
|
|
<div id="bid-show">
|
2013-09-16 08:49:39 +08:00
|
|
|
<%= render :partial => 'bids/bid_homework_show', :locals => {:bids => @bids, :bid_pages => @bid_pages} %>
|
2013-08-30 09:34:21 +08:00
|
|
|
</div>
|
|
|
|
|
2013-11-09 08:56:34 +08:00
|
|
|
|