|
|
@ -111,22 +111,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<div id="J_Slide" class="d-p-index-box d-p-index-hotproject">
|
|
|
|
<div id="J_Slide" class="d-p-index-box d-p-index-hotproject">
|
|
|
|
<h3 style="margin-left: 5px; color: #e8770d;"><strong>新开课程</strong></h3>
|
|
|
|
<h3><strong>新开课程</strong></h3>
|
|
|
|
<span style="margin-top: -20px;float: right; display: block;"><%= link_to "更多>>", {:controller => 'projects', :action => 'course', :project_type => 1}, :target => "_blank" %></span>
|
|
|
|
<span><%= link_to "更多>>", {:controller => 'projects', :action => 'course', :project_type => 1} %></span>
|
|
|
|
<div class="d-p-projectlist-box">
|
|
|
|
<div class="d-p-projectlist-box">
|
|
|
|
<ul class="d-p-projectlist">
|
|
|
|
<ul class="d-p-projectlist">
|
|
|
|
<% find_miracle_course(10, 7).map do |project| %>
|
|
|
|
<% find_miracle_course(10, 7).map do |project| %>
|
|
|
|
<li style="position:relative; height:5em;" class='<%= cycle("odd", "even") %>' title=<%=project.description.to_s%>>
|
|
|
|
<li class='<%= cycle("odd", "even") %>' title=<%=project.description.to_s%>>
|
|
|
|
<div style="float: left; height: 100%;">
|
|
|
|
<div class='avatar'>
|
|
|
|
<%= image_tag(get_course_avatar(project), :class => "avatar-4") %>
|
|
|
|
<%= image_tag(get_course_avatar(project), :class => "avatar-4") %>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<!-- 上左下右 -->
|
|
|
|
<!-- 上左下右 -->
|
|
|
|
<div class='desc_item' style="" >
|
|
|
|
<div class='desc_item text_nowrap' >
|
|
|
|
[<%= get_course_term project %>]
|
|
|
|
[<%= get_course_term project %>]
|
|
|
|
<%= link_to( project.name, project_path(project.id), :class => "d-g-blue d-p-project-name",:title => "#{project.name}" )%>
|
|
|
|
<%= 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' %>)
|
|
|
|
(<%= link_to "#{studentCount(project)}人", project_member_path(project, :role => 2) ,:course =>'1' %>)
|
|
|
|
|
|
|
|
(<%=(project.attachments.count.to_i+Version.joins(:project).where("projects.id=#{project.id}").count.to_i).to_s%>份资料)
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class='desc_item' style="">
|
|
|
|
<div class='desc_item' >
|
|
|
|
<span class=''>
|
|
|
|
<span class=''>
|
|
|
|
<% course = Course.find_by_extra(project.identifier) %>
|
|
|
|
<% course = Course.find_by_extra(project.identifier) %>
|
|
|
|
<%= course.teacher.user_extensions.occupation.try(:gsub, /(.+)$/, '\1:') %>
|
|
|
|
<%= course.teacher.user_extensions.occupation.try(:gsub, /(.+)$/, '\1:') %>
|
|
|
@ -139,7 +140,7 @@
|
|
|
|
<!-- <div class='desc_item' style="">
|
|
|
|
<!-- <div class='desc_item' style="">
|
|
|
|
<span class='font_lighter' title=<%#=project.description.to_s%>><%#=project.description.truncate(25, omission: '...')%></span>
|
|
|
|
<span class='font_lighter' title=<%#=project.description.to_s%>><%#=project.description.truncate(25, omission: '...')%></span>
|
|
|
|
</div> -->
|
|
|
|
</div> -->
|
|
|
|
<div style="position:absolute; bottom:0;right:0;margin:5px 10px 5px 5px ;">
|
|
|
|
<div class='join_course_link'>
|
|
|
|
<% if !course_endTime_timeout?(project)%>
|
|
|
|
<% if !course_endTime_timeout?(project)%>
|
|
|
|
<div >
|
|
|
|
<div >
|
|
|
|
<%= join_in_course(project, User.current)%>
|
|
|
|
<%= join_in_course(project, User.current)%>
|
|
|
|