2014-09-15 10:58:14 +08:00
|
|
|
|
<% @nav_dispaly_project_label = 1
|
2015-03-06 14:55:21 +08:00
|
|
|
|
@nav_dispaly_forum_label = 1 %>
|
2014-09-15 10:58:14 +08:00
|
|
|
|
<%#@nav_dispaly_project_label = 1 %>
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en">
|
|
|
|
|
<head>
|
|
|
|
|
<meta charset="utf-8" />
|
|
|
|
|
<title><%= h html_title %></title>
|
|
|
|
|
<meta name="description" content="<%= Redmine::Info.app_name %>" />
|
|
|
|
|
<meta name="keywords" content="issue,bug,tracker" />
|
|
|
|
|
<%= csrf_meta_tag %>
|
|
|
|
|
<%= favicon %>
|
|
|
|
|
<%= stylesheet_link_tag 'jquery/jquery-ui-1.9.2', 'application', 'nyan', :media => 'all' %>
|
|
|
|
|
<%= stylesheet_link_tag 'rtl', :media => 'all' if l(:direction) == 'rtl' %>
|
|
|
|
|
<%= javascript_heads %>
|
|
|
|
|
<%= heads_for_theme %>
|
|
|
|
|
<%= hubspot_head %>
|
|
|
|
|
<%= call_hook :view_layouts_base_html_head %>
|
|
|
|
|
<!-- page specific tags -->
|
|
|
|
|
<%= yield :header_tags -%>
|
|
|
|
|
</head>
|
|
|
|
|
<!--add by huang-->
|
|
|
|
|
<body class="<%= h body_css_classes %>">
|
|
|
|
|
<div id="wrapper">
|
|
|
|
|
<div id="wrapper2">
|
2015-03-06 14:55:21 +08:00
|
|
|
|
<div id="wrapper3">
|
|
|
|
|
<%= render :partial => 'layouts/base_header'%>
|
2014-09-15 10:58:14 +08:00
|
|
|
|
<div id="main">
|
2015-03-06 14:55:21 +08:00
|
|
|
|
<div class="top-content">
|
2014-09-15 10:58:14 +08:00
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
2015-03-11 17:23:38 +08:00
|
|
|
|
<td class="info_font" style="width: 240px;" rowspan="2"><a href="http://<%= Setting.host_name%>" style="color: #15bccf;"> <%= l(:label_projects_community)%> </a></td>
|
2015-03-06 14:55:21 +08:00
|
|
|
|
<td style="width: 430px; color: #15bccf"><strong><%= l(:label_user_location) %> : </strong></td>
|
2014-09-15 10:58:14 +08:00
|
|
|
|
<td rowspan="2" width="250px">
|
2015-03-06 14:55:21 +08:00
|
|
|
|
<div class="top-content-search">
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
function regexName()
|
|
|
|
|
{
|
|
|
|
|
var name = $.trim($("#name").val());
|
|
|
|
|
if(name.length == 0)
|
|
|
|
|
{
|
2015-03-09 15:32:55 +08:00
|
|
|
|
$("#project_name_span").text("<%= l(:label_search_conditions_not_null) %>");
|
2015-03-06 14:55:21 +08:00
|
|
|
|
$("#project_name_span").css('color','#ff0000');
|
|
|
|
|
$("#project_name_span").focus();
|
|
|
|
|
return false;
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
$("#project_name_span").text("");
|
|
|
|
|
return true;
|
|
|
|
|
}
|
|
|
|
|
}
|
2015-03-11 23:50:37 +08:00
|
|
|
|
|
|
|
|
|
// 项目描述超过展开
|
|
|
|
|
$(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);
|
|
|
|
|
})
|
|
|
|
|
})
|
2014-12-19 14:39:24 +08:00
|
|
|
|
|
2015-03-11 23:50:37 +08:00
|
|
|
|
function show_more_msg()
|
2015-03-12 08:42:39 +08:00
|
|
|
|
{$("#course_description").toggleClass("course_description_none");}
|
2015-03-06 14:55:21 +08:00
|
|
|
|
</script>
|
2015-03-12 08:42:39 +08:00
|
|
|
|
|
2015-03-06 14:55:21 +08:00
|
|
|
|
<%= 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] %>
|
|
|
|
|
<%#= submit_tag l(:label_search), :class => "enterprise", :name => nil %>
|
|
|
|
|
<a href="#" onclick="submitSerch();" class="ButtonColor m3p10" style="float:left;padding-top: 3px; margin: 0px;padding-bottom:0px;" > <%= l(:label_search)%> </a>
|
|
|
|
|
<br />
|
|
|
|
|
<span id="project_name_span" style="float: left"></span>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div></td>
|
2014-09-15 10:58:14 +08:00
|
|
|
|
</tr>
|
|
|
|
|
<tr>
|
2014-11-26 14:46:08 +08:00
|
|
|
|
<td>
|
2015-03-06 14:55:21 +08:00
|
|
|
|
<p class="top-content-list">
|
|
|
|
|
<%= link_to l(:label_home),home_path %> >
|
|
|
|
|
<%= link_to @project, project_path(@project) %>
|
|
|
|
|
</p></td>
|
2014-09-15 10:58:14 +08:00
|
|
|
|
</tr>
|
2015-03-06 14:55:21 +08:00
|
|
|
|
</table>
|
2014-09-15 10:58:14 +08:00
|
|
|
|
</div>
|
2015-03-06 14:55:21 +08:00
|
|
|
|
<!-- 左边侧栏内容 -->
|
2014-09-15 10:58:14 +08:00
|
|
|
|
<div id="sidebar">
|
2015-03-06 14:55:21 +08:00
|
|
|
|
<div class="project_left">
|
|
|
|
|
<div class="project_info">
|
|
|
|
|
<div class="pr_info_logo fl mr10 mb5">
|
|
|
|
|
<%= image_tag(url_to_avatar(@project), :style => 'width:61px; height:61px;') %>
|
2014-09-15 10:58:14 +08:00
|
|
|
|
</div>
|
2015-03-06 14:55:21 +08:00
|
|
|
|
<div class="pr_info_id fl mb5">
|
2015-03-19 17:28:12 +08:00
|
|
|
|
<%= l(:label_project_id)%><%= @project.id %>
|
2015-03-06 14:55:21 +08:00
|
|
|
|
</div>
|
|
|
|
|
<!--关注、申请加入/退出项目-->
|
|
|
|
|
<div id="join_exit_project_div">
|
|
|
|
|
<%= render 'layouts/join_exit_project' %>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 项目得分 -->
|
|
|
|
|
<div class="cl"></div>
|
2015-03-13 15:37:54 +08:00
|
|
|
|
<div class="pr_info_name f1">
|
|
|
|
|
<%= link_to @project.name, project_path(@project), :style => "color:#3E4040"%>
|
2015-03-07 01:07:50 +08:00
|
|
|
|
<% if !@project.is_public? %>
|
2015-03-11 17:23:38 +08:00
|
|
|
|
<span class="img_private"><%= l(:label_private)%></span>
|
2015-03-07 01:07:50 +08:00
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
2015-03-06 14:55:21 +08:00
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<div class="pr_info_score">
|
|
|
|
|
<% if @project.project_type == 0 %>
|
2015-03-11 17:23:38 +08:00
|
|
|
|
<%= l(:label_project_score)%> :
|
2015-03-11 14:32:29 +08:00
|
|
|
|
<%= link_to(format("%.2f" ,project_scores(@project) ).to_i, {:controller => 'projects',
|
|
|
|
|
:action => 'show_projects_score',
|
|
|
|
|
:remote => true,
|
|
|
|
|
:id => @project.id },
|
|
|
|
|
:style => "color: #EC6300;") %>
|
2015-03-06 14:55:21 +08:00
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pr_info_foot">
|
2015-03-12 15:56:03 +08:00
|
|
|
|
<%= l(:label_member) %>(<span class="info_foot_num" >
|
|
|
|
|
<%= link_to "#{@project.members.count}", project_member_path(@project), :style => "color:#3CA5C6;font-weight:bold" %></span>)
|
|
|
|
|
<span>| </span>
|
|
|
|
|
<%= l(:label_user_watcher) %>(<span class="info_foot_num">
|
2015-03-12 16:42:18 +08:00
|
|
|
|
<%= link_to "#{@project.watcher_users.count}", {:controller=>"projects", :action=>"watcherlist", :id => @project.id}, :style => "color:#3CA5C6;font-weight:bold" %></span>)
|
2015-03-12 15:56:03 +08:00
|
|
|
|
<span>| </span>
|
|
|
|
|
<%= l(:project_module_attachments) %>(<span class="info_foot_num" >
|
2015-03-19 11:26:31 +08:00
|
|
|
|
<% attaments_num = @project.attachments.count+Attachment.where(["`container_type` = 'Version' and `container_id` in (?)",@project.versions.map{ |v| v.id}]).all.count %>
|
|
|
|
|
<%= link_to "#{attaments_num}", project_files_path(@project), :style => "color:#3CA5C6;font-weight:bold" %></span>)
|
2015-03-17 17:02:32 +08:00
|
|
|
|
</div>
|
2015-03-06 14:55:21 +08:00
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</div><!--项目信息 end-->
|
|
|
|
|
|
|
|
|
|
<div class="subNavBox">
|
2015-03-07 11:02:12 +08:00
|
|
|
|
<% if User.current.member_of?(@project) %>
|
2015-03-11 17:23:38 +08:00
|
|
|
|
<div class="subNav currentDd currentDt subNav_jiantou"><%= l(:label_invite)%></div>
|
2015-03-06 14:55:21 +08:00
|
|
|
|
<ul class="navContent " style="display:block; padding-left: 0px; margin-top:0px;">
|
2015-03-11 17:23:38 +08:00
|
|
|
|
<li><%= link_to l(:label_invite_new_user), :controller=>"projects", :action=>"invite_members_by_mail", :id => @project %></li>
|
|
|
|
|
<li><%= link_to l(:label_invite_trustie_user), :controller=>"projects", :action=>"invite_members", :id => @project %></li>
|
2015-03-06 14:55:21 +08:00
|
|
|
|
</ul>
|
2015-03-07 11:02:12 +08:00
|
|
|
|
<% end %>
|
2015-03-06 14:55:21 +08:00
|
|
|
|
<div class="subNav">
|
2015-03-09 10:31:05 +08:00
|
|
|
|
<%= link_to l(:label_activity), {:controller => 'projects', :action => 'show', :id => @project.id}, :style => "color:#3CA5C6" %>
|
2015-03-12 19:29:44 +08:00
|
|
|
|
<% unless ForgeActivity.where("project_id = ?", @project.id).count == 0 %>
|
|
|
|
|
<span class="subnav_num">(<%= ForgeActivity.where("project_id = ?", @project.id).count %>)</span>
|
|
|
|
|
<% end %>
|
2014-09-15 10:58:14 +08:00
|
|
|
|
</div>
|
2015-03-11 22:42:42 +08:00
|
|
|
|
<% unless @project.enabled_modules.where("name = 'issue_tracking'").empty? %>
|
2015-03-06 14:55:21 +08:00
|
|
|
|
<div class="subNav">
|
2015-03-12 19:29:44 +08:00
|
|
|
|
<%= link_to l(:label_issue_tracking), project_issues_path(@project), :style => "color:#3CA5C6" %>
|
|
|
|
|
<% unless @project.issues.count == 0 %>
|
|
|
|
|
<span class="subnav_num">(<%= @project.issues.count %>)</span><span>
|
|
|
|
|
<% end %>
|
2015-03-11 22:42:42 +08:00
|
|
|
|
<% if User.current.member_of?(@project) %>
|
2015-03-21 14:17:29 +08:00
|
|
|
|
<%= link_to "+"+l(:label_release_issue), new_project_issue_path(@project) , :style => "font-size:12px !important;color:#fff; padding:1px 3px 3px 3px;height:16px;margin-top:4px;background:#28be6c;float:right;line-height:20px;" %></span>
|
2015-03-11 22:42:42 +08:00
|
|
|
|
<% end %>
|
2014-09-15 10:58:14 +08:00
|
|
|
|
</div>
|
2015-03-11 22:42:42 +08:00
|
|
|
|
<% end %>
|
|
|
|
|
<% unless @project.enabled_modules.where("name = 'boards'").empty? %>
|
2015-03-06 14:55:21 +08:00
|
|
|
|
<div class="subNav">
|
2015-03-11 17:23:38 +08:00
|
|
|
|
<%= link_to l(:project_module_boards), project_boards_path(@project), :style => "color:#3CA5C6" %>
|
2015-03-12 19:29:44 +08:00
|
|
|
|
<% unless @project.boards.first.topics.count == 0 %>
|
|
|
|
|
<span class="subnav_num">(<%= @project.boards.first.topics.count %>)</span>
|
|
|
|
|
<% end %>
|
2015-03-11 16:42:02 +08:00
|
|
|
|
<% if User.current.member_of?(@project) %>
|
2015-03-21 14:17:29 +08:00
|
|
|
|
<%= link_to "+"+l(:project_module_boards_post), project_boards_path(@project, :flag => true), :layout => 'base_projects',:style => "font-size:12px !important;color:#fff; padding:0px 3px 3px 3px;height:16px;margin-top:5px;background:#28be6c;float:right;line-height:20px;" %>
|
2015-03-06 14:55:21 +08:00
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
2015-03-11 22:42:42 +08:00
|
|
|
|
<% end%>
|
|
|
|
|
<% unless @project.enabled_modules.where("name = 'files'").empty? %>
|
2015-03-06 14:55:21 +08:00
|
|
|
|
<div class="subNav">
|
2015-03-19 17:21:11 +08:00
|
|
|
|
<%= link_to l(:project_module_files), project_files_path(@project), :style => "color:#3CA5C6" %>
|
2015-03-19 11:26:31 +08:00
|
|
|
|
<% unless attaments_num == 0 %>
|
|
|
|
|
<span class="subnav_num">(<%= attaments_num %>)</span>
|
2015-03-12 19:29:44 +08:00
|
|
|
|
<% end %>
|
2015-03-11 16:42:02 +08:00
|
|
|
|
<% if User.current.member_of?(@project) %>
|
2015-03-21 14:17:29 +08:00
|
|
|
|
<%= link_to "+"+l(:label_upload_files), project_files_path(@project,:flag => true),:style => "font-size:12px !important;color:#fff; padding:1px 3px 3px 3px;height:16px;margin-top:4px;background:#28be6c;float:right;line-height:20px;" %>
|
2015-03-06 14:55:21 +08:00
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
2015-03-11 22:42:42 +08:00
|
|
|
|
<% end%>
|
2015-03-13 15:37:54 +08:00
|
|
|
|
<% unless @project.enabled_modules.where("name = 'repository'").empty? || @project.repositories.count == 0 %>
|
2015-03-06 14:55:21 +08:00
|
|
|
|
<div class="subNav">
|
2015-03-13 15:37:54 +08:00
|
|
|
|
<%= link_to l(:project_module_repository), {:controller => 'repositories', :action => 'show', :id => @project.id}, :style => "color:#3CA5C6" %>
|
|
|
|
|
<span class="subnav_num">(<%= @project.repositories.count %>)</span>
|
2015-03-12 09:52:57 +08:00
|
|
|
|
<%# 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 %>
|
2014-09-15 10:58:14 +08:00
|
|
|
|
</div>
|
2015-03-11 22:42:42 +08:00
|
|
|
|
<% end %>
|
2015-03-06 14:55:21 +08:00
|
|
|
|
|
2015-03-19 17:21:11 +08:00
|
|
|
|
<div class="subNav subNav_jiantou"><%= l(:label_project_more) %></div>
|
2015-03-06 14:55:21 +08:00
|
|
|
|
<ul class="navContent" style="padding-left: 0px">
|
|
|
|
|
<%= render 'projects/tools_expand' %>
|
|
|
|
|
</ul>
|
|
|
|
|
</div><!--项目侧导航 end-->
|
|
|
|
|
<div class="cl"></div>
|
2015-03-11 23:50:37 +08:00
|
|
|
|
<!-- 项目描述 -->
|
2015-03-06 14:55:21 +08:00
|
|
|
|
<div class="project_intro">
|
2015-03-11 23:50:37 +08:00
|
|
|
|
<div id="course_description" class="course_description">
|
2015-03-12 08:42:39 +08:00
|
|
|
|
<h4 ><%= l(:label_project_overview) %></h4><%= @project.description %>
|
2015-03-06 14:55:21 +08:00
|
|
|
|
</div>
|
2015-03-11 23:50:37 +08:00
|
|
|
|
<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模块 -->
|
2015-03-06 14:55:21 +08:00
|
|
|
|
<div class="project_Label">
|
2015-03-11 17:23:38 +08:00
|
|
|
|
<h4 class="project_h4"><%= l(:label_tag)%>:</h4>
|
2015-03-06 14:55:21 +08:00
|
|
|
|
<div class="tag_h" >
|
|
|
|
|
<div class="user_tags">
|
|
|
|
|
<div id="tags">
|
|
|
|
|
<%= render :partial => 'tags/project_tag', :locals => {:obj => @project,:object_flag => "2"}%>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</div><!--项目标签 end-->
|
2014-09-15 10:58:14 +08:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="content">
|
2015-03-06 14:55:21 +08:00
|
|
|
|
|
2014-09-15 10:58:14 +08:00
|
|
|
|
<%= render_flash_messages %>
|
|
|
|
|
<%= yield %>
|
|
|
|
|
<%= call_hook :view_layouts_base_content %>
|
|
|
|
|
<div style="clear:both;"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<%= render :partial => 'layouts/base_footer'%>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="ajax-indicator" style="display:none;">
|
|
|
|
|
<span><%= l(:label_loading) %></span>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="ajax-modal" style="display:none;"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<%= call_hook :view_layouts_base_body_bottom %>
|
|
|
|
|
</div>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|
|