<%= csrf_meta_tag %> <%= favicon %> <%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2', 'application', :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 -%>
<%= render :partial => 'layouts/base_header'%>
<% @project = Project.find_by_id(@project.id)%> <% @course = Course.find_by_extra(@project.identifier)%>
高校课程实践社区 当前单位 :
forge.trustie.net/courses <%=link_to "主页", home_path %> > <%=link_to "实践课程", :controller => 'projects', :action => 'index' %> > <%=link_to @project.name, project_path %>(<%= @course.time %><%= @course.term %>)
  • <%= link_to l(:label_course_overview), project_path(@project), :class => link_class(:overview)%>
  • <%= link_to l(:label_homework), {:controller => 'projects', :action => 'homework'}, :class => link_class('Homework')%>
  • <%= link_to l(:label_course_file), project_files_path(@project), :class => link_class(:files)%>
  • <%= link_to l(:label_course_news), {:controller => 'news', :action => 'index', :project_id => @project}, :class => link_class(:news)%>
  • <% 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))%>
<% end %>
<%= render_flash_messages %> <%= yield %> <%= call_hook :view_layouts_base_content %>
<%= render :partial => 'layouts/base_footer'%> <%= debug(params) if Rails.env.development? %>
<%= call_hook :view_layouts_base_body_bottom %>