<%= stylesheet_link_tag 'welcome' %> <%= javascript_include_tag 'welcome' %>
<%= image_tag(@logoLink, size: '75x75') %>
<% if @school_id.nil? and User.current.user_extensions.school.nil? %> <% else %> <% if @school_id == "0" %> <% else %> <% if @school_id.nil? %> <%= link_to School.find(User.current.user_extensions.school.id).name, options={:action => 'course', :school_id => User.current.user_extensions.school.id}, html_options={:class => 'font_welcome_school', :method => 'get'} %>
<% else %> <%= link_to School.find(@school_id).name, options={:action => 'course', :school_id => @school_id}, html_options={:class => 'font_welcome_school', :method => 'get'} %>
<% end %> <% end %> <% end %>
<%= l(:label_welcome_trustie) %><%= l(:label_welcome_trustie_course) %> <% if @school_id.nil? and User.current.user_extensions.school.nil? %> , <%= l(:label_welcome_trustie_course_description) %> <% else %> <% if @school_id == "0" %> , <%= l(:label_welcome_trustie_course_description) %> <% end %> <% end %>

新开课程

<% if @school_id %> <% school_course = find_miracle_course(10,7, @school_id) %> <% else %> <%school_course=[]%> <% end %> <% if (school_course.count == 0) %> <%= link_to "更多>>", {:controller => 'courses', :action => 'index', :school_id => nil} %>
<% else %> <% if school_course.count < 9 %> <%= link_to "更多>>", {:controller => 'courses', :action => 'index', :school_id => nil} %> <% else %> <%= link_to "更多>>", {:controller => 'courses', :action => 'index', :school_id => @school_id} %> <% end %>
<% end %>

问题和反馈动态 <%= link_to "我要提问", newbie_send_path, {:class => 'orangeButton idea_btn', :style => "color: #EEEEEE"} %> <%= link_to "我要反馈", suggestion_send_path, {:class => 'orangeButton idea_btn', :style => "color: #EEEEEE"} %>

<%= link_to "更多>>", forums_path %>
<%= render partial: 'link_to_another' %>