<%= image_tag '/images/qrweixin.jpg', size: '150x150', alt: 'trustie', class: "weixin" %>
微信扫码
<%= l(:label_welcome_trustie) %>
, <%= l(:label_welcome_trustie_description) %>
<%= render :partial => "search_bar"%>
<%= stylesheet_link_tag 'welcome' %>
新开课程
<%= link_to "更多>>", {:controller => 'projects', :action => 'course', :project_type => 1}, :target => "_blank" %>
<% find_miracle_course(10, 7).map do |project| %>
<%= image_tag(get_course_avatar(project), :class => "avatar-4") %>
[<%= get_course_term project %>]
<%#= join_in_course(project, User.current) %> <%= link_to( project.name, project_path(project.id), :class => "d-g-blue d-p-project-name",:title => "#{project.name}" )%> (<%= link_to "#{studentCount(project)}人", project_member_path(project, :role => 2) ,:course =>'1' %>)
><%=project.description.truncate(25, omission: '...')%>
<%= join_in_course(project, User.current)%>
<% end; reset_cycle %>
当前网站状态
课程总量: <%=@course.count%>
教师数量: <%=@teacher.count%>
用户总量: <%=User.count%>
学生数量: <%=@student.count%>
资源总量: <%=Attachment.count%>
<%= link_to "意见反馈" , suggestion_send_path, {:class => 'orangeButton', :style => "color: #EEEEEE" }%>
问题和反馈动态
<%= 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 %>
<% find_new_forum_topics(11).each do |topic|%>
<%= link_to topic.subject.truncate(30, omission: '...'), topic.event_url, :class => "gray" , :style => "font-size: 10pt !important;" %>
<%= l(:field_updated_on) %><%=time_tag_welcome(topic_last_time topic)%>前
由 <%= link_to topic.author ? topic.author : 'Anonymous', user_path(topic.author_id), :style => "font-size: 9pt !important; color: rgb(17, 102, 173);" %> 发表
回复(<%= link_to (topic.parent ? topic.parent.replies_count : topic.replies_count), topic.event_url %>)
<% end %>