|
|
|
@ -111,23 +111,32 @@
|
|
|
|
|
<div class="d-p-projectlist-box">
|
|
|
|
|
<ul class="d-p-projectlist">
|
|
|
|
|
<% find_miracle_course(10, 7).map do |project| %>
|
|
|
|
|
<li style="position:relative;height:5em;" class='<%= cycle("odd", "even") %>'>
|
|
|
|
|
<div style="float: left;">
|
|
|
|
|
<li style="position:relative; height:5em;" class='<%= cycle("odd", "even") %>' title=<%=project.description.to_s%>>
|
|
|
|
|
<div style="float: left; height: 100%;">
|
|
|
|
|
<%= image_tag(get_course_avatar(project), :class => "avatar-4") %>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 上左下右 -->
|
|
|
|
|
<div style="float: left; margin-left: 10px; width: 380px;">
|
|
|
|
|
<span>[<%= get_course_term project %>]</span>
|
|
|
|
|
<%#= join_in_course(project, User.current) %>
|
|
|
|
|
<div class='desc_item' style="" >
|
|
|
|
|
[<%= 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 "#{studentCount(project)}人", project_member_path(project, :role => 2) ,:course =>'1' %>)
|
|
|
|
|
</div>
|
|
|
|
|
<div style="float: left;margin:5px; margin-left: 10px; width: 380px;">
|
|
|
|
|
<span class='font_lighter' title =<%=project.description.to_s%>><%=project.description.truncate(25, omission: '...')%></span>
|
|
|
|
|
<div class='desc_item' style="">
|
|
|
|
|
<span class='font_bolder'>
|
|
|
|
|
<%=l :label_main_teacher%>: <%=Course.find_by_extra(project.identifier).try(:teacher).try(:name)%>
|
|
|
|
|
</span>
|
|
|
|
|
<span class='font_italic'>
|
|
|
|
|
<%= Course.find_by_extra(project.identifier).teacher.user_extensions.occupation %>
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- <div class='desc_item' style="">
|
|
|
|
|
<span class='font_lighter' title=<%#=project.description.to_s%>><%#=project.description.truncate(25, omission: '...')%></span>
|
|
|
|
|
</div> -->
|
|
|
|
|
<div style="position:absolute; bottom:0;right:0;margin:5px 10px 5px 5px ;">
|
|
|
|
|
<% if !course_endTime_timeout?(project)%>
|
|
|
|
|
<div >
|
|
|
|
|
<%= join_in_course(project, User.current)%>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
</li>
|
|
|
|
@ -136,7 +145,7 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<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 hidden" style="float: right;">
|
|
|
|
|
|
|
|
|
|
<div class="web_status">
|
|
|
|
|
<h3 style="margin-left: 5px; color: #e8770d;"><strong>当前网站状态</strong></h3>
|
|
|
|
@ -156,13 +165,13 @@
|
|
|
|
|
</tr>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
<div style="text-align: right; padding-right: 20px">
|
|
|
|
|
<div class='hidden' style="text-align: right; padding-right: 20px">
|
|
|
|
|
<%= link_to "意见反馈" , suggestion_send_path, {:class => 'orangeButton', :style => "color: #EEEEEE" }%>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="J_Slide" class="d-p-index-box d-p-index-hotproject" style="margin-top: 20px; float: right;">
|
|
|
|
|
<h3 style="padding-bottom:5px ;margin-left: 5px; color: #e8770d;">
|
|
|
|
|
<div id="J_Slide" class="d-p-index-box d-p-index-hotproject" style="float: right;">
|
|
|
|
|
<h3 style="padding-bottom:px ;margin-left: 5px; color: #e8770d;">
|
|
|
|
|
<strong>问题和反馈动态</strong>
|
|
|
|
|
<%= link_to "我要提问" , newbie_send_path, {:class => 'orangeButton idea_btn', :style => "color: #EEEEEE" }%>
|
|
|
|
|
<%= link_to "我要反馈" , suggestion_send_path, {:class => 'orangeButton idea_btn', :style => "color: #EEEEEE" }%>
|
|
|
|
@ -170,8 +179,8 @@
|
|
|
|
|
<span style="margin-top: -20px;float: right; display: block;"><%= link_to "更多>>", forums_path %></span>
|
|
|
|
|
<div class="d-p-projectlist-box">
|
|
|
|
|
<ul class="d-p-projectlist">
|
|
|
|
|
<% find_new_forum_topics(11).each do |topic|%>
|
|
|
|
|
<li class="message-brief-intro" style="min-height: 20px;padding-bottom:3px; line-height:1.27em; ">
|
|
|
|
|
<% find_new_forum_topics(10).each do |topic|%>
|
|
|
|
|
<li class="message-brief-intro" style="min-height: 65px; line-height:2em; ">
|
|
|
|
|
<div style="display: inline-block; width: 100%;">
|
|
|
|
|
<span style="color:gray; display: inline-block; margin-bottom:6px; background: url('/images/list-icon.png') no-repeat scroll ;background-position: left center;">
|
|
|
|
|
<%= link_to topic.subject.truncate(30, omission: '...'), topic.event_url, :class => "gray" , :style => "font-size: 10pt !important;" %>
|
|
|
|
|