- <%= link_to l(:label_question_student), {:controller => 'bids', :action => 'show'}, :class => link_class(:respond) %> <% if User.current.member_of? @bid.courses.first %>
- <% if User.current.logged? && @bid.courses.first && (!Member.where('user_id = ? and course_id = ?', User.current.id, @bid.courses.first.id).first.nil? && (Member.where('user_id = ? and course_id = ?', User.current.id, @bid.courses.first.id).first.roles&Role.where('id = ? or id = ? or id =?', 5, 10, 7)).size >0) %> <%= link_to l(:label_homework_commit), {:controller => 'bids', :action => 'show_course'}, :class => link_class(:course) %> <% else %> <%= link_to l(:label_homework_info), {:controller => 'bids', :action => 'show_course'}, :class => link_class(:course) %> <% end %> <% end %>
高校课程实践社区 | <%= 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)) %> |