- <%= link_to l(:label_course_overview), course_path(@course), :class => link_class(:overview) %>
- <%= link_to l(:label_homework), homework_course_path(@course), :class => link_class(:homework), :course_type => 1 %>
- <%= link_to l(:label_course_file), course_files_path(@course), :class => link_class(:files) %>
- <%= link_to l(:label_course_news), {:controller => 'news', :action => 'index', :course_id => @course}, :class => link_class(:news) %>
- <%= link_to l(:label_course_board), {:controller => 'boards', :action => 'index', :course_id => @course}, :class => link_class(:boards) %>
- <%= link_to l(:label_course_feedback), course_feedback_path(@course), :class => link_class(:feedback) %> <% if User.current.logged? && (User.current.admin? || (!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 = ?', 7, 9)).size >0)) %> <% end %>
高校课程实践社区 | <%= l(:label_user_location) %> : |
<%= form_tag(:controller => 'courses', :action => 'search', :method => :get) do %>
<%= text_field_tag 'name', params[:name], :size => 20 %>
<%= submit_tag l(:label_search), :class => "enterprise", :name => nil %>
<% end %>
|
<%= link_to request.host()+"/course", :controller => 'courses', :action => 'index' %> | <%= link_to "主页", home_path %> > <%= link_to l(:label_course_all), :controller => 'courses', :action => 'index' %> > <%= link_to @course.name, nil %> |