|
|
|
@ -51,11 +51,21 @@
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function submitSerch()
|
|
|
|
|
{
|
|
|
|
|
if(regexName()){$("#project_search_form").submit();}
|
|
|
|
|
}
|
|
|
|
|
// 项目描述超过展开
|
|
|
|
|
$(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 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" %>
|
|
|
|
|
<%= hidden_field_tag 'project_type', params[:project_type] %>
|
|
|
|
@ -77,17 +87,6 @@
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 左边侧栏内容 -->
|
|
|
|
|
<div id="sidebar">
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
$(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);
|
|
|
|
|
})
|
|
|
|
|
})
|
|
|
|
|
</script>
|
|
|
|
|
<div class="project_left">
|
|
|
|
|
<div class="project_info">
|
|
|
|
|
<div class="pr_info_logo fl mr10 mb5">
|
|
|
|
@ -141,19 +140,12 @@
|
|
|
|
|
<div class="subNav">
|
|
|
|
|
<%= link_to l(:label_issue_tracking), project_issues_path(@project), :style => "color:#3CA5C6" %><span class="subnav_num">(<%= @project.issues.count %>)</span>
|
|
|
|
|
<span>
|
|
|
|
|
<% if User.current.logged? && User.current.member_of?(@project) %>
|
|
|
|
|
<%= link_to "+发布问题", new_project_issue_path(@project) , :style => "font-size:12px;color:#fff; padding:1px 3px 3px 3px;height:18px;margin-top:3px;background:#28be6c;float:right;line-height:20px;" %></span>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<% end%>
|
|
|
|
|
<% unless @project.enabled_modules.where("name = 'boards'").empty? %>
|
|
|
|
|
<div class="subNav">
|
|
|
|
|
<%= link_to l(:label_issue_tracking), project_issues_path(@project), :style => "color:#3CA5C6" %><span class="subnav_num">(<%= @project.issues.count %>)</span>
|
|
|
|
|
<span>
|
|
|
|
|
<% if User.current.member_of?(@project) %>
|
|
|
|
|
<%= link_to "+"+l(:label_release_issue), new_project_issue_path(@project) , :style => "font-size:12px;color:#fff; padding:1px 3px 3px 3px;height:18px;margin-top:3px;background:#28be6c;float:right;line-height:20px;" %></span>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
<% unless @project.enabled_modules.where("name = 'boards'").empty? %>
|
|
|
|
|
<div class="subNav">
|
|
|
|
|
<%= link_to l(:project_module_boards), project_boards_path(@project), :style => "color:#3CA5C6" %>
|
|
|
|
|
<span class="subnav_num">(<%= @project.boards.first.topics.count %>)</span>
|
|
|
|
@ -166,7 +158,7 @@
|
|
|
|
|
<div class="subNav">
|
|
|
|
|
<%= link_to l(:label_course_file), project_files_path(@project), :style => "color:#3CA5C6" %><span class="subnav_num">(<%= @project.attachments.count %>)</span>
|
|
|
|
|
<% if User.current.member_of?(@project) %>
|
|
|
|
|
<%= link_to "+"+l(:label_upload_files), new_project_file_path(@project),:style => "font-size:12px;color:#fff; padding:1px 3px 3px 3px;height:18px;margin-top:3px;background:#28be6c;float:right;line-height:20px;" %>
|
|
|
|
|
<%= link_to "+"+l(:label_upload_files), project_files_path(@project,:flag => true),:style => "font-size:12px;color:#fff; padding:1px 3px 3px 3px;height:18px;margin-top:3px;background:#28be6c;float:right;line-height:20px;" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<% end%>
|
|
|
|
@ -174,9 +166,9 @@
|
|
|
|
|
<div class="subNav">
|
|
|
|
|
<%= link_to l(:project_module_repository), {:controller => 'repositories', :action => 'show', :id => @project.id}, :style => "color:#3CA5C6" %>
|
|
|
|
|
<span class="subnav_num">(<%= @project.repositories.count %>)</span>
|
|
|
|
|
<% if User.current.member_of?(@project) %>
|
|
|
|
|
<%= link_to "+"+l(:project_module_create_repository), new_project_repository_path(@project),:style => "font-size:12px;color:#fff; padding:1px 3px 3px 3px;height:18px;margin-top:3px;background:#28be6c;float:right;line-height:20px;" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
<%# if User.current.member_of?(@project) %>
|
|
|
|
|
<%#= link_to "+"+l(:project_module_create_repository), new_project_repository_path(@project),:style => "font-size:12px;color:#fff; padding:1px 3px 3px 3px;height:18px;margin-top:3px;background:#28be6c;float:right;line-height:20px;" %>
|
|
|
|
|
<%# end %>
|
|
|
|
|
</div>
|
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
|
@ -186,12 +178,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 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>
|
|
|
|
|
</div><!--项目简介 end-->
|
|
|
|
|
<!-- tag模块 -->
|
|
|
|
|
<div class="project_Label">
|
|
|
|
|
<h4 class="project_h4"><%= l(:label_tag)%>:</h4>
|
|
|
|
|
<div class="tag_h" >
|
|
|
|
|