<% @nav_dispaly_course_all_label = 1 @nav_dispaly_forum_label = 1 @nav_dispaly_course_label = nil @nav_dispaly_store_all_label = 1 %> <%=h html_title %> <%= csrf_meta_tag %> <%= favicon %> <%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2', 'application', 'nyan', :media => 'all' %> <%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %> <%= javascript_heads %> <%= heads_for_theme %> <%= call_hook :view_layouts_base_html_head %> <%= yield :header_tags -%> <% course = @bid.courses.first %> <% if course %>
<%= render :partial => 'layouts/base_header' %>
高校课程实践社区 <%= 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(course.name.to_s, homework_course_path(course)) if course %> > <%= link_to(@bid.name, respond_path(@bid)) %>

  • <%= link_to l(:label_question_student), {:controller => 'bids', :action => 'show'}, :class => link_class(:respond) %>
  • <% if User.current.member_of_course? course %>
  • <% 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 %>
  • <% end %>
<%= yield %> <%= call_hook :view_layouts_base_content %>
<%= render :partial => 'layouts/base_footer' %>
<%= call_hook :view_layouts_base_body_bottom %> <% end %>