|
|
|
@ -50,11 +50,22 @@
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// 项目描述超过展开
|
|
|
|
|
$(function(){
|
|
|
|
|
$(".subNav").click(function(){
|
|
|
|
|
$(this).toggleClass("currentDd").siblings(".subNav").removeClass("currentDd")
|
|
|
|
|
$(this).toggleClass("currentDt").siblings(".subNav").removeClass("currentDt")
|
|
|
|
|
|
|
|
|
|
// 修改数字控制速度, slideUp(500)控制卷起速度
|
|
|
|
|
$(this).next(".navContent").slideToggle(500).siblings(".navContent").slideUp(500);
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
function submitSerch()
|
|
|
|
|
{
|
|
|
|
|
if(regexName()){$("#project_search_form").submit();}
|
|
|
|
|
}
|
|
|
|
|
function show_more_msg()
|
|
|
|
|
{$("#course_description").toggleClass("course_description_none");}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script>
|
|
|
|
|
<%= form_tag(projects_search_path, :method => :get, :id => "project_search_form") do %>
|
|
|
|
|
<%= text_field_tag 'name', params[:name], :size => 20, :onkeyup => "regexName();", :style => "float:left" %>
|
|
|
|
@ -179,12 +190,14 @@
|
|
|
|
|
</ul>
|
|
|
|
|
</div><!--项目侧导航 end-->
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<!-- 项目描述 -->
|
|
|
|
|
<div class="project_intro">
|
|
|
|
|
<h4 class="project_h4"><%= l(:label_project_overview)%></h4><%= @project.description %>
|
|
|
|
|
<div class="lg-foot">
|
|
|
|
|
<%= l(:label_expend_information)%> <span class="g-arr-down"><img src="/images/new_project/jiantou.jpg" width="12" height="6" /></span>
|
|
|
|
|
<div id="course_description" class="course_description">
|
|
|
|
|
<h4 ><%= l(:label_project_overview) %>:</h4><%= @project.description %>
|
|
|
|
|
</div>
|
|
|
|
|
</div><!--项目简介 end-->
|
|
|
|
|
<div class="lg-foot" onclick="show_more_msg();"><%= l(:label_expend_information) %><span class="g-arr-down"><img src="/images/jiantou.jpg" width="12" height="6" /></span></div>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- tag模块 -->
|
|
|
|
|
<div class="project_Label">
|
|
|
|
|
<h4 class="project_h4"><%= l(:label_tag)%>:</h4>
|
|
|
|
|
<div class="tag_h" >
|
|
|
|
|