<%= link_to l(:label_course_new), {:controller => 'courses', :action => 'new'}, :class => 'icon icon-add' %>

<%=l(:label_course_all)%>

<%= form_tag({}, :method => :get) do %>
<%= text_field_tag 'name', params[:name], :size => 30, :placeholder => '课程名称' %> <%= submit_tag l(:button_apply), :class => "small", :name => nil %> <%= l(:button_clear)%>
<% end %>  
<% @courses.each do |course| %> "> <% end %>
序号 课程 主讲老师 学时 <%=l(:field_is_public)%> <%=l(:field_created_on)%>
<%= course.id %> <%= link_to(course.name, course_path(course.id)) %> <%= link_to(course.try(:teacher).try(:realname).truncate(6, omission: '...'), user_path(course.teacher)) %> <%= course.class_period %> <%= checked_image course.is_public? %> <%= format_date(course.created_at) %>
<% html_title(l(:label_course_all)) -%>