|  |  | @ -39,30 +39,31 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |     </div> |  |  |  |     </div> | 
			
		
	
		
		
			
				
					
					|  |  |  |     <div class="course welcome_left" id="welcome_left"> |  |  |  |     <div class="course welcome_left" id="welcome_left"> | 
			
		
	
		
		
			
				
					
					|  |  |  | 			<span class="font_welcome_school"> <% if @school_id.nil? and (User.current.user_extensions.nil? || User.current.user_extensions.school.nil?) %> |  |  |  |         <span class="font_welcome_school"> <% if @school_id.nil? and (User.current.user_extensions.nil? || User.current.user_extensions.school.nil?) %> | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           <% else %> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                 <% if @school_id == "0" %> | 
			
		
	
		
		
			
				
					
					|  |  |  |               <% else %> |  |  |  |               <% else %> | 
			
		
	
		
		
			
				
					
					|  |  |  | 					<% if @school_id == "0" %> |  |  |  |                     <% if @school_id.nil? %> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                   <% else %> |  |  |  |                         <%= 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'} %> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 						<% if @school_id.nil? %> |  |  |  |                       <br/> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 							<%= 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 %> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                           <br/> |  |  |  |                         <%= link_to School.find(@school_id).name, options={:action => 'course', :school_id => @school_id}, html_options={:class => 'font_welcome_school', :method => 'get'} %> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 						<% else %> |  |  |  |                       <br/> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 							<%= link_to School.find(@school_id).name, options={:action => 'course', :school_id => @school_id}, html_options={:class => 'font_welcome_school', :method => 'get'} %> |  |  |  |                     <% end %> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |                           <br/> |  |  |  |                 <% end %> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 						<% end %> |  |  |  |             <% end %> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 					<% end %> |  |  |  |         </span> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  | 				<% end %> </span> |  |  |  |  | 
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |       <% unless @course_page.nil? %> |  |  |  |       <% unless @course_page.nil? %> | 
			
		
	
		
		
			
				
					
					|  |  |  |         <span class="font_welcome_trustie"><%= @course_page.title %> </span> |  |  |  |           <span class="font_welcome_trustie"><%= @course_page.title %> </span> | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |       <% if @school_id.nil? and (User.current.user_extensions.nil? || User.current.user_extensions.school.nil?) %> |  |  |  |           <% if @school_id.nil? and (User.current.user_extensions.nil? || User.current.user_extensions.school.nil?) %> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |           <span class="font_welcome_tdescription">, <%= @course_page.description %></span> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |       <% else %> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |           <% if @school_id == "0" %> |  |  |  |  | 
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |               <span class="font_welcome_tdescription">, <%= @course_page.description %></span> |  |  |  |               <span class="font_welcome_tdescription">, <%= @course_page.description %></span> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |           <% else %> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               <% if @school_id == "0" %> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |                   <span class="font_welcome_tdescription">, <%= @course_page.description %></span> | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |               <% end %> | 
			
		
	
		
		
			
				
					
					|  |  |  |           <% end %> |  |  |  |           <% end %> | 
			
		
	
		
		
			
				
					
					|  |  |  |       <% end %> |  |  |  |       <% end %> | 
			
		
	
		
		
			
				
					
					|  |  |  |       <% end %> |  |  |  |  | 
			
		
	
		
		
			
				
					
					|  |  |  |     </div> |  |  |  |     </div> | 
			
		
	
		
		
			
				
					
					|  |  |  |     <div class="search-bar" id="search-bar"> |  |  |  |     <div class="search-bar" id="search-bar"> | 
			
		
	
		
		
			
				
					
					|  |  |  |       <%= render :partial => "search_course", :locals => {:project_type => Project::ProjectType_course} %> |  |  |  |       <%= render :partial => "search_course", :locals => {:project_type => Project::ProjectType_course} %> | 
			
		
	
	
		
		
			
				
					|  |  | @ -98,7 +99,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |         </ul> |  |  |  |         </ul> | 
			
		
	
		
		
			
				
					
					|  |  |  |       </div> |  |  |  |       </div> | 
			
		
	
		
		
			
				
					
					|  |  |  |   <% else %> |  |  |  |   <% else %> | 
			
		
	
		
		
			
				
					
					|  |  |  |       <% if school_course.count < 10 %> |  |  |  |       <% if school_course.count < 9 %> | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |           <span> |  |  |  |           <span> | 
			
		
	
		
		
			
				
					
					|  |  |  |             <%= render :partial =>  'more_course', :locals => {:school_id => nil}%> |  |  |  |             <%= render :partial =>  'more_course', :locals => {:school_id => nil}%> | 
			
		
	
		
		
			
				
					
					|  |  |  |           </span> |  |  |  |           </span> | 
			
		
	
	
		
		
			
				
					|  |  | @ -110,7 +111,7 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  |       <div class="d-p-projectlist-box"> |  |  |  |       <div class="d-p-projectlist-box"> | 
			
		
	
		
		
			
				
					
					|  |  |  |         <ul class="d-p-projectlist"> |  |  |  |         <ul class="d-p-projectlist"> | 
			
		
	
		
		
			
				
					
					|  |  |  |           <%= render :partial => 'course_list', :locals => {:course_list => school_course} %> |  |  |  |           <%= render :partial => 'course_list', :locals => {:course_list => school_course} %> | 
			
		
	
		
		
			
				
					
					|  |  |  |           <% if school_course.count < 10 %> |  |  |  |           <% if school_course.count < 9 %> | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  |               <li> |  |  |  |               <li> | 
			
		
	
		
		
			
				
					
					|  |  |  |                 <%= render :partial => 'no_course_title', :locals => {:course_title => l(:label_school_less_course)} %> |  |  |  |                 <%= render :partial => 'no_course_title', :locals => {:course_title => l(:label_school_less_course)} %> | 
			
		
	
		
		
			
				
					
					|  |  |  |               </li> |  |  |  |               </li> | 
			
		
	
	
		
		
			
				
					|  |  | @ -123,9 +124,9 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | <div id="J_Slide" class="d-p-index-box d-p-index-hotproject" style="float: right;"> |  |  |  | <div id="J_Slide" class="d-p-index-box d-p-index-hotproject" style="float: right;"> | 
			
		
	
		
		
			
				
					
					|  |  |  |   <h3 style="padding-bottom:0px ;margin-left: 5px; color: #e8770d;"> |  |  |  |   <h3 style="padding-bottom:0px ;margin-left: 5px; color: #e8770d;"> | 
			
		
	
		
		
			
				
					
					|  |  |  |     <strong>问题和反馈动态</strong> |  |  |  |     <strong><%= l(:label_issue_feedback_activities)%></strong> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |     <%= link_to "我要提问", newbie_send_path, {:class => 'orangeButton idea_btn', :style => "color: #EEEEEE"} %> |  |  |  |     <%= link_to l(:label_my_question), newbie_send_path, {:class => 'orangeButton idea_btn', :style => "color: #EEEEEE"} %> | 
			
				
				
			
		
	
		
		
			
				
					
					|  |  |  |     <%= link_to "我要反馈", suggestion_send_path, {:class => 'orangeButton idea_btn', :style => "color: #EEEEEE"} %> |  |  |  |     <%= link_to l(:label_my_feedback), suggestion_send_path, {:class => 'orangeButton idea_btn', :style => "color: #EEEEEE"} %> | 
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					
					|  |  |  |   </h3> |  |  |  |   </h3> | 
			
		
	
		
		
			
				
					
					|  |  |  |   <span style="margin-top: -20px;float: right; display: block;"><%= link_to "更多>>", forums_path %></span> |  |  |  |   <span style="margin-top: -20px;float: right; display: block;"><%= link_to "更多>>", forums_path %></span> | 
			
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
	
		
		
			
				
					|  |  | @ -143,13 +144,13 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | 						<%= "#{l(:label_updated_time, value: time_tag_welcome(topic_last_time topic))}".html_safe %> |  |  |  | 						<%= "#{l(:label_updated_time, value: time_tag_welcome(topic_last_time topic))}".html_safe %> | 
			
		
	
		
		
			
				
					
					|  |  |  | 					</span> |  |  |  | 					</span> | 
			
		
	
		
		
			
				
					
					|  |  |  | 					<span class="memo_author"> |  |  |  | 					<span class="memo_author"> | 
			
		
	
		
		
			
				
					
					|  |  |  | 						楼主: <%= link_to topic.author.login.truncate(10, omission: '...'),user_path(topic.author),title: topic.author.login %> |  |  |  | 						<%= l(:label_question_sponsor)%>: <%= link_to topic.author.login.truncate(10, omission: '...'),user_path(topic.author),title: topic.author.login %> | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 					</span> |  |  |  | 					</span> | 
			
		
	
		
		
			
				
					
					|  |  |  | 					<span class="memo_last_person"> |  |  |  | 					<span class="memo_last_person"> | 
			
		
	
		
		
			
				
					
					|  |  |  | 						最后回复:<% unless (topic.last_reply.nil? || topic.last_reply.author.nil?) %><%=link_to topic.last_reply.author.login.truncate(10, omission: '...'),user_path(topic.last_reply.author),title: topic.last_reply.author.login%><% end %> |  |  |  | 						<%= l(:label_final_reply)%>:<% unless (topic.last_reply.nil? || topic.last_reply.author.nil?) %><%=link_to topic.last_reply.author.login.truncate(10, omission: '...'),user_path(topic.last_reply.author),title: topic.last_reply.author.login%><% end %> | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 					</span> |  |  |  | 					</span> | 
			
		
	
		
		
			
				
					
					|  |  |  | 					<span class="memo_reply"> |  |  |  | 					<span class="memo_reply"> | 
			
		
	
		
		
			
				
					
					|  |  |  | 						回复(<%= link_to topic.try(:replies_count), topic.event_url %>) |  |  |  | 						<%= l(:label_reply)%>(<%= link_to topic.try(:replies_count), topic.event_url %>) | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 					</span> |  |  |  | 					</span> | 
			
		
	
		
		
			
				
					
					|  |  |  |               </div> |  |  |  |               </div> | 
			
		
	
		
		
			
				
					
					|  |  |  |             </div> |  |  |  |             </div> | 
			
		
	
	
		
		
			
				
					|  |  | 
 |