Merge branch 'szzh' of http://repository.trustie.net/xianbo/trustie2 into szzh
This commit is contained in:
commit
0772e04510
|
@ -198,7 +198,7 @@ class ProjectsController < ApplicationController
|
||||||
@project_type = params[:project_type]
|
@project_type = params[:project_type]
|
||||||
@school_id = params[:school_id]
|
@school_id = params[:school_id]
|
||||||
per_page_option = 10
|
per_page_option = 10
|
||||||
if @school_id == "0" or @school.nil?
|
if @school_id == "0" or @school_id.nil?
|
||||||
@projects_all = Project.active.visible.
|
@projects_all = Project.active.visible.
|
||||||
joins("LEFT JOIN #{ProjectStatus.table_name} ON #{Project.table_name}.id = #{ProjectStatus.table_name}.project_id").
|
joins("LEFT JOIN #{ProjectStatus.table_name} ON #{Project.table_name}.id = #{ProjectStatus.table_name}.project_id").
|
||||||
where("#{Project.table_name}.project_type = ? ", Project::ProjectType_course)
|
where("#{Project.table_name}.project_type = ? ", Project::ProjectType_course)
|
||||||
|
|
|
@ -62,33 +62,33 @@ module ProjectsHelper
|
||||||
content_tag('div', content, :class => "tabs_enterprise")
|
content_tag('div', content, :class => "tabs_enterprise")
|
||||||
end
|
end
|
||||||
|
|
||||||
def sort_course(state, project_type)
|
def sort_course(state, project_type, school_id)
|
||||||
content = ''.html_safe
|
content = ''.html_safe
|
||||||
case state
|
case state
|
||||||
when 0
|
when 0
|
||||||
content << content_tag('li', link_to(l(:label_sort_by_time), course_path(:project_sort_type => '0', :project_type => project_type), :class=>"selected"), :class=>"selected")
|
content << content_tag('li', link_to(l(:label_sort_by_time), course_path(:project_sort_type => '0', :project_type => project_type), :school_id => school_id, :class=>"selected"), :class=>"selected")
|
||||||
content << content_tag('li', link_to(l(:label_sort_by_active), course_path(:project_sort_type => '1', :project_type => project_type)))
|
content << content_tag('li', link_to(l(:label_sort_by_active), course_path(:project_sort_type => '1', :project_type => project_type, :school_id => school_id)))
|
||||||
# content << content_tag('li', link_to(l(:label_sort_by_influence), course_path(:project_sort_type => '2', :project_type => project_type)))
|
# content << content_tag('li', link_to(l(:label_sort_by_influence), course_path(:project_sort_type => '2', :project_type => project_type)))
|
||||||
content << content_tag('li', link_to(l(:label_sort_by_activity), course_path(:project_sort_type => '3', :project_type => project_type)))
|
content << content_tag('li', link_to(l(:label_sort_by_activity), course_path(:project_sort_type => '3', :project_type => project_type, :school_id => school_id)))
|
||||||
|
|
||||||
when 1
|
when 1
|
||||||
content << content_tag('li', link_to(l(:label_sort_by_time), course_path(:project_sort_type => '0', :project_type => project_type)))
|
content << content_tag('li', link_to(l(:label_sort_by_time), course_path(:project_sort_type => '0', :project_type => project_type, :school_id => school_id)))
|
||||||
content << content_tag('li', link_to(l(:label_sort_by_active), course_path(:project_sort_type => '1', :project_type => project_type), :class=>"selected"), :class=>"selected")
|
content << content_tag('li', link_to(l(:label_sort_by_active), course_path(:project_sort_type => '1', :project_type => project_type, :school_id => school_id), :class=>"selected"), :class=>"selected")
|
||||||
# content << content_tag('li', link_to(l(:label_sort_by_influence), course_path(:project_sort_type => '2', :project_type => project_type)))
|
# content << content_tag('li', link_to(l(:label_sort_by_influence), course_path(:project_sort_type => '2', :project_type => project_type)))
|
||||||
content << content_tag('li', link_to(l(:label_sort_by_activity), course_path(:project_sort_type => '3', :project_type => project_type)))
|
content << content_tag('li', link_to(l(:label_sort_by_activity), course_path(:project_sort_type => '3', :project_type => project_type, :school_id => school_id)))
|
||||||
|
|
||||||
when 2
|
when 2
|
||||||
content << content_tag('li', link_to(l(:label_sort_by_time), course_path(:project_sort_type => '0', :project_type => project_type)))
|
content << content_tag('li', link_to(l(:label_sort_by_time), course_path(:project_sort_type => '0', :project_type => project_type, :school_id => school_id)))
|
||||||
content << content_tag('li', link_to(l(:label_sort_by_active), course_path(:project_sort_type => '1', :project_type => project_type)))
|
content << content_tag('li', link_to(l(:label_sort_by_active), course_path(:project_sort_type => '1', :project_type => project_type, :school_id => school_id)))
|
||||||
# content << content_tag('li', link_to(l(:label_sort_by_influence), course_path(:project_sort_type => '2', :project_type => project_type), :class=>"selected"), :class=>"selected")
|
# content << content_tag('li', link_to(l(:label_sort_by_influence), course_path(:project_sort_type => '2', :project_type => project_type), :class=>"selected"), :class=>"selected")
|
||||||
content << content_tag('li', link_to(l(:label_sort_by_activity), course_path(:project_sort_type => '3', :project_type => project_type)))
|
content << content_tag('li', link_to(l(:label_sort_by_activity), course_path(:project_sort_type => '3', :project_type => project_type, :school_id => school_id)))
|
||||||
|
|
||||||
#gcm
|
#gcm
|
||||||
when 3
|
when 3
|
||||||
content << content_tag('li', link_to(l(:label_sort_by_time), course_path(:project_sort_type => '0', :project_type => project_type)))
|
content << content_tag('li', link_to(l(:label_sort_by_time), course_path(:project_sort_type => '0', :project_type => project_type, :school_id => school_id)))
|
||||||
content << content_tag('li', link_to(l(:label_sort_by_active), course_path(:project_sort_type => '1', :project_type => project_type)))
|
content << content_tag('li', link_to(l(:label_sort_by_active), course_path(:project_sort_type => '1', :project_type => project_type, :school_id => school_id)))
|
||||||
# content << content_tag('li', link_to(l(:label_sort_by_influence), course_path(:project_sort_type => '2', :project_type => project_type)))
|
# content << content_tag('li', link_to(l(:label_sort_by_influence), course_path(:project_sort_type => '2', :project_type => project_type)))
|
||||||
content << content_tag('li', link_to(l(:label_sort_by_activity), course_path(:project_sort_type => '3', :project_type => project_type), :class=>"selected"), :class=>"selected")
|
content << content_tag('li', link_to(l(:label_sort_by_activity), course_path(:project_sort_type => '3', :project_type => project_type, :school_id => school_id), :class=>"selected"), :class=>"selected")
|
||||||
end
|
end
|
||||||
#gcmend
|
#gcmend
|
||||||
|
|
||||||
|
|
|
@ -154,6 +154,12 @@ module WelcomeHelper
|
||||||
sort_course_by_hot limit
|
sort_course_by_hot limit
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def find_all_new_hot_course limit = 9
|
||||||
|
#sort_project_by_hot_rails 1, 'course_ac_para DESC', limit
|
||||||
|
time_now = Time.new.strftime("%Y");
|
||||||
|
Project.visible.joins(:project_status).where("#{Project.table_name}.project_type = ? and #{Project.table_name}.created_on like '%#{time_now}%'", 1).order("course_ac_para DESC").limit(limit).all
|
||||||
|
end
|
||||||
|
|
||||||
def find_all_hot_bid
|
def find_all_hot_bid
|
||||||
sort_bid_by_hot
|
sort_bid_by_hot
|
||||||
end
|
end
|
||||||
|
|
|
@ -30,7 +30,7 @@
|
||||||
</table>
|
</table>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<%= sort_course(@s_type, @project_type)%>
|
<%= sort_course(@s_type, @project_type, @school_id)%>
|
||||||
|
|
||||||
<div id="projects-index">
|
<div id="projects-index">
|
||||||
<%= render_project_hierarchy(@projects)%>
|
<%= render_project_hierarchy(@projects)%>
|
||||||
|
|
|
@ -1,197 +1,204 @@
|
||||||
<%= stylesheet_link_tag 'welcome' %>
|
<%= stylesheet_link_tag 'welcome' %>
|
||||||
<%= javascript_include_tag 'welcome' %>
|
<%= javascript_include_tag 'welcome' %>
|
||||||
<script type="text/javascript" language="javascript" xmlns="http://www.w3.org/1999/html"
|
<script type="text/javascript" language="javascript" xmlns="http://www.w3.org/1999/html"
|
||||||
xmlns="http://www.w3.org/1999/html">
|
xmlns="http://www.w3.org/1999/html" xmlns="http://www.w3.org/1999/html">
|
||||||
|
|
||||||
$(function(){
|
$(function(){
|
||||||
$("#main").find("a").attr("target", "_blank");
|
$("#main").find("a").attr("target", "_blank");
|
||||||
});
|
});
|
||||||
|
|
||||||
// 给主页用户弹新页面
|
// 给主页用户弹新页面
|
||||||
$(document).ready(function($) {
|
$(document).ready(function($) {
|
||||||
$("#loggedas").find("a").attr("target", "_blank");
|
$("#loggedas").find("a").attr("target", "_blank");
|
||||||
//$("#content .tabs_new~ .pagination").find("a").removeAttr("target");
|
//$("#content .tabs_new~ .pagination").find("a").removeAttr("target");
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class='top_bar'>
|
<div class='top_bar'>
|
||||||
<div id="identifier-pannel" style="display:none">
|
<div id="identifier-pannel" style="display:none">
|
||||||
<%= image_tag '/images/qrweixin.jpg', size: '150x150', alt: 'trustie', class: "weixin" %>
|
<%= image_tag '/images/qrweixin.jpg', size: '150x150', alt: 'trustie', class: "weixin" %>
|
||||||
<div class="weixin-content">微信扫码</div>
|
<div class="weixin-content">微信扫码</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="main-content-bar">
|
<div class="main-content-bar">
|
||||||
<div style="float: left">
|
<div style="float: left">
|
||||||
<%= image_tag(@logoLink, size:'75x75') %>
|
<%= image_tag(@logoLink, size:'75x75') %>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="course welcome_left" >
|
<div class="course welcome_left" >
|
||||||
<br />
|
<br />
|
||||||
<span class="font_welcome_school"> <% if params[:school_id].nil? and User.current.user_extensions.school.nil? %>
|
<span class="font_welcome_school"> <% if params[:school_id].nil? and User.current.user_extensions.school.nil? %>
|
||||||
<% else%>
|
<% else%>
|
||||||
<% if params[:school_id] == "0" %>
|
<% if params[:school_id] == "0" %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<% if params[:school_id].nil? %>
|
<% if params[: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'}%>
|
<%= 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'}%>
|
||||||
<br />
|
<br />
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to School.find(params[:school_id]).name ,options={:action => 'course',:school_id => params[:school_id]}, html_options={:class => 'font_welcome_school',:method => 'get'}%>
|
<%= link_to School.find(params[:school_id]).name ,options={:action => 'course',:school_id => params[:school_id]}, html_options={:class => 'font_welcome_school',:method => 'get'}%>
|
||||||
<br />
|
<br />
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %> </span>
|
<% end %> </span>
|
||||||
<span class="font_welcome_trustie"><%= l(:label_welcome_trustie) %><%= l(:label_welcome_trustie_course) %> </span>
|
<span class="font_welcome_trustie"><%= l(:label_welcome_trustie) %><%= l(:label_welcome_trustie_course) %> </span>
|
||||||
<% if params[:school_id].nil? and User.current.user_extensions.school.nil? %>
|
<% if params[:school_id].nil? and User.current.user_extensions.school.nil? %>
|
||||||
<span class="font_welcome_tdescription">, <%= l(:label_welcome_trustie_course_description) %></span>
|
<span class="font_welcome_tdescription">, <%= l(:label_welcome_trustie_course_description) %></span>
|
||||||
<% else %>
|
<% else %>
|
||||||
<% if params[:school_id] == "0" %>
|
<% if params[:school_id] == "0" %>
|
||||||
<span class="font_welcome_tdescription">, <%= l(:label_welcome_trustie_course_description) %></span>
|
<span class="font_welcome_tdescription">, <%= l(:label_welcome_trustie_course_description) %></span>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
<div class="search-bar">
|
<div class="search-bar">
|
||||||
<%= render :partial => "search_project", :locals => {:project_type => Project::ProjectType_course}%>
|
<%= render :partial => "search_project", :locals => {:project_type => Project::ProjectType_course}%>
|
||||||
</div>
|
</div>
|
||||||
<div style="clear: both;"></div>
|
<div style="clear: both;"></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div style="clear:both"></div>
|
<div style="clear:both"></div>
|
||||||
|
|
||||||
|
|
||||||
<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><strong>新开课程</strong></h3>
|
<h3><strong>新开课程</strong></h3>
|
||||||
<span><%= link_to "更多>>", {:controller => 'projects', :action => 'course', :project_type => 1, :school_id => params[:school_id]} %></span>
|
<% if(find_miracle_course(10, 7,params[:school_id]).map.count == 0) %>
|
||||||
<div class="d-p-projectlist-box">
|
<span><%= link_to "更多>>", {:controller => 'projects', :action => 'course', :project_type => 1, :school_id => nil} %></span>
|
||||||
<ul class="d-p-projectlist">
|
<div class="d-p-projectlist-box">
|
||||||
|
<ul class="d-p-projectlist">
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
<ul class="d-p-projectlist">
|
||||||
<ul class="d-p-projectlist">
|
<h1></h1>
|
||||||
<% if(find_miracle_course(10, 7,params[:school_id]).map.count == 0) %>
|
<p id="errorExplanation">
|
||||||
<h1></h1>
|
该学校未开设任何课程,您可以查看其他学校课程
|
||||||
<p id="errorExplanation">
|
</p>
|
||||||
该学校未开设任何课程,您可以查看其他学校课程
|
<h1></h1>
|
||||||
</p>
|
<% find_all_new_hot_course(9).map do |project| %>
|
||||||
<h1></h1>
|
<li class='<%= cycle("odd", "even") %>' title=<%=project.description.to_s%>>
|
||||||
<% find_all_hot_course(9).map do |project| %>
|
<div class='avatar'>
|
||||||
<li class='<%= cycle("odd", "even") %>' title=<%=project.description.to_s%>>
|
<%= image_tag(get_course_avatar(project), :class => "avatar-4") %>
|
||||||
<div class='avatar'>
|
</div>
|
||||||
<%= image_tag(get_course_avatar(project), :class => "avatar-4") %>
|
<!-- 上左下右 -->
|
||||||
</div>
|
<div class='desc_item' >
|
||||||
<!-- 上左下右 -->
|
<span class=''>
|
||||||
<div class='desc_item text_nowrap' >
|
<% course = Course.find_by_extra(project.identifier)%>
|
||||||
[<%= get_course_term project %>]
|
<% if(course.school == nil) %>
|
||||||
<%= 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' %>)
|
<% else %>
|
||||||
<% files_count = (project.attachments.count.to_i+Version.joins(:project).where("projects.id=#{project.id}").count.to_i).to_s %>
|
<%= course.school.name.try(:gsub, /(.+)$/, '\1:') %>
|
||||||
(<%=link_to "#{files_count}份", project_files_path(project) %>资料)
|
<% end %>
|
||||||
</div>
|
</span>
|
||||||
<div class='desc_item' >
|
<span class='font_bolder'>
|
||||||
<span class=''>
|
<%= link_to(course.try(:teacher).try(:name), user_path(course.teacher)) %>
|
||||||
<% course = Course.find_by_extra(project.identifier)%>
|
|
||||||
<% if(course.school == nil) %>
|
|
||||||
|
|
||||||
<% else %>
|
|
||||||
<%= course.school.name.try(:gsub, /(.+)$/, '\1:') %>
|
|
||||||
<% end %>
|
|
||||||
</span>
|
|
||||||
<span class='font_bolder'>
|
|
||||||
<%= link_to(course.try(:teacher).try(:name), user_path(course.teacher)) %>
|
|
||||||
<%#=course.try(:teacher).try(:name)%>
|
|
||||||
</span>
|
|
||||||
</div>
|
|
||||||
<!-- <div class='desc_item' style="">
|
|
||||||
<span class='font_lighter' title=<%#=project.description.to_s%>><%#=project.description.truncate(25, omission: '...')%></span>
|
|
||||||
</div> -->
|
|
||||||
<div class='join_course_link'>
|
|
||||||
<% if !course_endTime_timeout?(project)%>
|
|
||||||
<div >
|
|
||||||
<%= join_in_course(project, User.current)%>
|
|
||||||
</div>
|
|
||||||
<% end %>
|
|
||||||
</div>
|
|
||||||
</li>
|
|
||||||
<% end %>
|
|
||||||
<% else %>
|
|
||||||
<% find_miracle_course(10, 7,params[:school_id]).map do |project| %>
|
|
||||||
<li class='<%= cycle("odd", "even") %>' title=<%=project.description.to_s%>>
|
|
||||||
<div class='avatar'>
|
|
||||||
<%= image_tag(get_course_avatar(project), :class => "avatar-4") %>
|
|
||||||
</div>
|
|
||||||
<!-- 上左下右 -->
|
|
||||||
<div class='desc_item text_nowrap' >
|
|
||||||
[<%= 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' %>)
|
|
||||||
<% files_count = (project.attachments.count.to_i+Version.joins(:project).where("projects.id=#{project.id}").count.to_i).to_s %>
|
|
||||||
(<%=link_to "#{files_count}份", project_files_path(project) %>资料)
|
|
||||||
</div>
|
|
||||||
<div class='desc_item' >
|
|
||||||
<span class=''>
|
|
||||||
<% course = Course.find_by_extra(project.identifier) %>
|
|
||||||
<%= course.school.name.try(:gsub, /(.+)$/, '\1:') %>
|
|
||||||
</span>
|
|
||||||
<span class='font_bolder'>
|
|
||||||
<%= link_to(course.try(:teacher).try(:name), user_path(course.teacher)) %>
|
|
||||||
<%#=course.try(:teacher).try(:name)%>
|
<%#=course.try(:teacher).try(:name)%>
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class='desc_item' style="">
|
<div class='desc_item text_nowrap' style="width: 310px;">
|
||||||
<span class='font_lighter' title=<%#=project.description.to_s%>><%#=project.description.truncate(25, omission: '...')%></span>
|
[<%= get_course_term project %>]
|
||||||
</div> -->
|
<%= link_to( project.name, project_path(project.id), :class => "d-g-blue d-p-project-name",:title => "#{project.name}" )%>
|
||||||
<div class='join_course_link'>
|
(<%= link_to "#{studentCount(project)}人", project_member_path(project, :role => 2) ,:course =>'1' %>)
|
||||||
<% if !course_endTime_timeout?(project)%>
|
<% files_count = (project.attachments.count.to_i+Version.joins(:project).where("projects.id=#{project.id}").count.to_i).to_s %>
|
||||||
<div >
|
(<%=link_to "#{files_count}份", project_files_path(project) %>资料)
|
||||||
<%= join_in_course(project, User.current)%>
|
</div>
|
||||||
</div>
|
<!-- <div class='desc_item' style="">
|
||||||
<% end %>
|
<span class='font_lighter' title=<%#=project.description.to_s%>><%#=project.description.truncate(25, omission: '...')%></span>
|
||||||
</div>
|
</div> -->
|
||||||
</li>
|
<div>
|
||||||
<% end; reset_cycle %>
|
<% if !course_endTime_timeout?(project)%>
|
||||||
|
<div >
|
||||||
|
<%= new_watcher_link(project, User.current)%>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
<% else %>
|
||||||
|
<span><%= link_to "更多>>", {:controller => 'projects', :action => 'course', :project_type => 1, :school_id => params[:school_id]} %></span>
|
||||||
|
<div class="d-p-projectlist-box">
|
||||||
|
<ul class="d-p-projectlist">
|
||||||
|
|
||||||
|
</ul>
|
||||||
|
<ul class="d-p-projectlist">
|
||||||
|
<% find_miracle_course(10, 7,params[:school_id]).map do |project| %>
|
||||||
|
<li class='<%= cycle("odd", "even") %>' title=<%=project.description.to_s%>>
|
||||||
|
<div class='avatar'>
|
||||||
|
<%= image_tag(get_course_avatar(project), :class => "avatar-4") %>
|
||||||
|
</div>
|
||||||
|
<!-- 上左下右 -->
|
||||||
|
<div class='desc_item' >
|
||||||
|
<span class=''>
|
||||||
|
<% course = Course.find_by_extra(project.identifier) %>
|
||||||
|
<%= course.school.name.try(:gsub, /(.+)$/, '\1:') %>
|
||||||
|
</span>
|
||||||
|
<span class='font_bolder'>
|
||||||
|
<%= link_to(course.try(:teacher).try(:name), user_path(course.teacher)) %>
|
||||||
|
<%#=course.try(:teacher).try(:name)%>
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
|
<div class='desc_item text_nowrap' style="width: 310px;">
|
||||||
|
[<%= 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' %>)
|
||||||
|
<% files_count = (project.attachments.count.to_i+Version.joins(:project).where("projects.id=#{project.id}").count.to_i).to_s %>
|
||||||
|
(<%=link_to "#{files_count}份", project_files_path(project) %>资料)
|
||||||
|
</div>
|
||||||
|
<!-- <div class='desc_item' style="">
|
||||||
|
<span class='font_lighter' title=<%#=project.description.to_s%>><%#=project.description.truncate(25, omission: '...')%></span>
|
||||||
|
</div> -->
|
||||||
|
<div class='join_course_link'>
|
||||||
|
<% if !course_endTime_timeout?(project)%>
|
||||||
|
<div >
|
||||||
|
<%= join_in_course(project, User.current)%>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
|
</div>
|
||||||
|
</li>
|
||||||
|
<% end; reset_cycle %>
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
<% end %>
|
||||||
</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" 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>问题和反馈动态</strong>
|
||||||
<%= link_to "我要提问" , newbie_send_path, {:class => 'orangeButton idea_btn', :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 "我要反馈" , 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>
|
||||||
<div class="d-p-projectlist-box">
|
<div class="d-p-projectlist-box">
|
||||||
<ul class="d-p-projectlist">
|
<ul class="d-p-projectlist">
|
||||||
<% find_new_forum_topics(10).each do |topic|%>
|
<% find_new_forum_topics(10).each do |topic|%>
|
||||||
<li class="message-brief-intro" style="min-height: 65px; line-height:2em; ">
|
<li class="message-brief-intro" style="min-height: 65px; line-height:2em; ">
|
||||||
<div style="display: inline-block; width: 100%;">
|
<div style="display: inline-block; width: 100%;">
|
||||||
<span class="memo_activity" style="color:gray; display: inline-block; margin-bottom:6px; background: url('/images/list-icon.png') no-repeat scroll ;background-position: left center;">
|
<span class="memo_activity" 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.forum.name + ']',forum_path(topic.forum),:class => 'memo_Bar_title' %><%= link_to topic.subject.truncate(30, omission: '...'), topic.event_url, :class => "gray" , :style => "font-size: 10pt !important;" %>
|
<%= link_to '['+topic.forum.name + ']',forum_path(topic.forum),:class => 'memo_Bar_title' %><%= link_to topic.subject.truncate(30, omission: '...'), topic.event_url, :class => "gray" , :style => "font-size: 10pt !important;" %>
|
||||||
</span>
|
</span>
|
||||||
<br>
|
<br>
|
||||||
<span style="margin-left: 24px; color: rgb(172, 174, 177); white-space: nowrap; font-size:9pt !important;;"><%= l(:field_updated_on) %><%=time_tag_welcome(topic_last_time topic)%>前</span>
|
<span style="margin-left: 24px; color: rgb(172, 174, 177); white-space: nowrap; font-size:9pt !important;;"><%= l(:field_updated_on) %><%=time_tag_welcome(topic_last_time topic)%>前</span>
|
||||||
<span style="margin-left: 8px; margin-bottom: 0px; color: rgb(172, 174, 177) !important; white-space: nowrap;">
|
<span style="margin-left: 8px; margin-bottom: 0px; color: rgb(172, 174, 177) !important; white-space: nowrap;">
|
||||||
由 <%= 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.author ? topic.author : 'Anonymous', user_path(topic.author_id), :style => "font-size: 9pt !important; color: rgb(17, 102, 173);" %> 发表
|
||||||
</span>
|
</span>
|
||||||
<span style="float: right; color: rgb(172, 174, 177); white-space: nowrap; font-size:9pt !important;;">回复(<%= link_to (topic.parent ? topic.parent.replies_count : topic.replies_count), topic.event_url %>)</span>
|
<span style="float: right; color: rgb(172, 174, 177); white-space: nowrap; font-size:9pt !important;;">回复(<%= link_to (topic.parent ? topic.parent.replies_count : topic.replies_count), topic.event_url %>)</span>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
|
|
||||||
<div class="hidden" style="width:100%;">
|
<div class="hidden" style="width:100%;">
|
||||||
<div style="width:600px;margin:0px auto;margin-top:80px;">
|
<div style="width:600px;margin:0px auto;margin-top:80px;">
|
||||||
<table style="width:600px;font-size:15px; color: #e8770d;">
|
<table style="width:600px;font-size:15px; color: #e8770d;">
|
||||||
<tr>
|
<tr>
|
||||||
<td><strong>当前网站状态</strong></td>
|
<td><strong>当前网站状态</strong></td>
|
||||||
<td>活跃课程: <%=@courseCount%></td>
|
<td>活跃课程: <%=@courseCount%></td>
|
||||||
<td>高校: 2个</td>
|
<td>高校: 2个</td>
|
||||||
<td>教师: <%=@teacherCount%> 名</td>
|
<td>教师: <%=@teacherCount%> 名</td>
|
||||||
<td>学生: <%=@studentCount%> 名<td>
|
<td>学生: <%=@studentCount%> 名<td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
Loading…
Reference in New Issue