2014-09-15 10:58:14 +08:00
|
|
|
|
<% @nav_dispaly_project_label = 1
|
2015-05-19 10:10:52 +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">
|
2015-05-19 10:10:52 +08:00
|
|
|
|
<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 %>
|
|
|
|
|
<%= javascript_heads %>
|
|
|
|
|
<%= heads_for_theme %>
|
2016-02-25 11:12:24 +08:00
|
|
|
|
<%= stylesheet_link_tag 'header','scm','public', 'pleft', 'project','prettify','jquery/jquery-ui-1.9.2','repository','share' %>
|
2015-11-02 15:21:53 +08:00
|
|
|
|
<%= javascript_include_tag 'cookie','project', 'header','prettify','select_list_move','attachments' %>
|
2015-12-06 15:03:36 +08:00
|
|
|
|
|
2015-05-19 10:10:52 +08:00
|
|
|
|
<%= call_hook :view_layouts_base_html_head %>
|
|
|
|
|
<!-- page specific tags -->
|
|
|
|
|
<%= yield :header_tags -%>
|
2015-11-17 15:24:01 +08:00
|
|
|
|
<!-- MathJax的配置 -->
|
|
|
|
|
<script type="text/javascript"
|
|
|
|
|
src="/javascripts/MathJax/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
|
|
|
|
|
</script>
|
|
|
|
|
<!-- 配置 : 在生成的公式图片上去掉Math定义的右键菜单,$$ $$ \( \) \[ \] 中的公式给予显示-->
|
|
|
|
|
<script type="text/x-mathjax-config">
|
|
|
|
|
MathJax.Hub.Config({
|
|
|
|
|
showMathMenu: false,
|
|
|
|
|
showMathMenuMSIE: false,
|
|
|
|
|
tex2jax: {inlineMath: [['$','$'], ['\\(','\\)']]}
|
|
|
|
|
});
|
|
|
|
|
</script>
|
2015-04-14 10:17:42 +08:00
|
|
|
|
|
2015-05-19 10:10:52 +08:00
|
|
|
|
</head>
|
|
|
|
|
<!--add by huang-->
|
2015-09-29 15:13:05 +08:00
|
|
|
|
<body onload="prettyPrint();">
|
2015-08-25 14:09:37 +08:00
|
|
|
|
<div class="navContainer mb10">
|
|
|
|
|
<% if User.current.logged? %>
|
|
|
|
|
<%= render :partial => 'layouts/logined_header' %>
|
|
|
|
|
<% else%>
|
|
|
|
|
<%= render :partial => 'layouts/unlogin_header' %>
|
|
|
|
|
<% end%>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
|
2015-05-19 10:10:52 +08:00
|
|
|
|
<div id="Container">
|
2015-05-26 17:44:39 +08:00
|
|
|
|
|
2015-08-25 14:09:37 +08:00
|
|
|
|
<%#= render :partial => 'layouts/new_header'%>
|
2015-05-19 10:10:52 +08:00
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
|
|
|
|
|
<div id="content">
|
|
|
|
|
<div id="LSide" class="fl">
|
|
|
|
|
<div class="project_info">
|
|
|
|
|
<div class="pr_info_logo fl mr10 mb5">
|
|
|
|
|
<%= image_tag(url_to_avatar(@project), :width => "60", :height => "60") %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pr_info_id fl mb5 f14">
|
|
|
|
|
<%= l(:label_project_id)%><%= @project.id %>
|
|
|
|
|
</div>
|
|
|
|
|
<!--关注、申请加入/退出项目-->
|
|
|
|
|
<div id="join_exit_project_div">
|
|
|
|
|
<% text = @project.project_new_type == 1 ? l(:label_development_team) : (@project.project_new_type == 2 ? l(:label_research_group) : l(:label_friend_organization))%>
|
|
|
|
|
<% typeclass = @project.project_new_type == 1 ? "pr_kafa" : (@project.project_new_type == 2 ? "pr_keyan" : "pr_friend")%>
|
|
|
|
|
<%= render 'layouts/join_exit_project',{:text => text, :typeclass => typeclass} %>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- 项目得分 -->
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<div>
|
2016-03-03 18:03:30 +08:00
|
|
|
|
<%= link_to "#{@project.name}", project_path(@project.id), :class=>"pr_info_name fl c_dark fb break_word" %>
|
2015-05-19 10:10:52 +08:00
|
|
|
|
<% if @project.is_public? %>
|
|
|
|
|
<span class="img_private"><%= l(:label_public)%></span>
|
|
|
|
|
<% else %>
|
|
|
|
|
<span class="img_private"><%= l(:label_private)%></span>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
2015-04-07 12:48:47 +08:00
|
|
|
|
<div class="cl"></div>
|
2015-05-19 10:10:52 +08:00
|
|
|
|
<div>
|
|
|
|
|
<% if @project.project_type == 0 %>
|
2016-01-14 14:32:19 +08:00
|
|
|
|
<% unless static_project_score(@project.project_score) == 0 %>
|
2015-07-24 11:36:21 +08:00
|
|
|
|
<span class="fb f14 "><%= l(:label_project_score)%> :</span>
|
2016-01-14 14:32:19 +08:00
|
|
|
|
<%= link_to(format("%.2f" ,static_project_score(@project.project_score)).to_i,
|
2016-01-13 15:29:29 +08:00
|
|
|
|
{:controller => 'projects',
|
|
|
|
|
:action => 'show_projects_score',
|
|
|
|
|
:remote => true,
|
|
|
|
|
:id => @project.id}, :class => "c_orange f14" ) %>
|
2015-07-24 11:36:21 +08:00
|
|
|
|
<% end %>
|
2015-05-19 10:10:52 +08:00
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
2014-12-19 14:39:24 +08:00
|
|
|
|
|
2015-05-19 10:10:52 +08:00
|
|
|
|
<!--参数-->
|
|
|
|
|
<div class="pr_info_foot">
|
2015-11-02 12:54:58 +08:00
|
|
|
|
<%= l(:label_member) %>(<%= link_to "#{@project.members.count}", project_member_path(@project), :class => 'info_foot_num c_blue', :id => 'project_members_number' %>)
|
2015-05-19 10:10:52 +08:00
|
|
|
|
<span>| </span>
|
|
|
|
|
<%= l(:label_user_watcher) %>(<%= link_to "#{@project.watcher_users.count}", {:controller=>"projects", :action=>"watcherlist", :id => @project.id}, :class => 'info_foot_num c_blue' %>)
|
2015-05-26 16:50:10 +08:00
|
|
|
|
<% unless @project.enabled_modules.where("name = 'files'").empty? %>
|
|
|
|
|
<span>| </span>
|
|
|
|
|
<%= l(:project_module_attachments) %>(
|
2016-01-14 14:32:19 +08:00
|
|
|
|
<% @project.project_score.attach_num %>
|
|
|
|
|
<%= link_to "#{@project.project_score.attach_num }", project_files_path(@project), :class => 'info_foot_num c_blue', :id=>'project_files_count_info' %></span>)
|
2015-05-26 16:50:10 +08:00
|
|
|
|
<% end %>
|
2015-05-19 10:10:52 +08:00
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</div><!--参数 end-->
|
2015-03-06 14:55:21 +08:00
|
|
|
|
|
2015-05-19 10:10:52 +08:00
|
|
|
|
<!--邀请加入-->
|
|
|
|
|
<div class="subNavBox">
|
2015-12-10 20:24:42 +08:00
|
|
|
|
<%# if User.current.member_of?(@project) %>
|
|
|
|
|
<!--<div class="subNav currentDd currentDt subNav_jiantou" id="expand_tools_expand_invit" nhtype="toggle4cookie" data-id="expand_invit" data-target="#navContent_invit" data-val="expand">-->
|
|
|
|
|
<!--<%#= l(:label_invite)%>-->
|
|
|
|
|
<!--</div>-->
|
|
|
|
|
<!--<ul class="navContent " style="display:block" id="navContent_invit">-->
|
|
|
|
|
<!--<li><%#= link_to l(:label_invite_new_user), :controller=>"projects", :action=>"invite_members_by_mail", :id => @project %></li>-->
|
|
|
|
|
<!--<!–<%# if User.current.allowed_to?(:manage_members, @project) %>–>-->
|
2015-09-16 17:35:26 +08:00
|
|
|
|
<!--<li><%#= link_to l(:label_invite_trustie_user), :controller=>"projects", :action=>"invite_members", :id => @project %></li>-->
|
|
|
|
|
<!--<%# end %>-->
|
2015-12-10 20:24:42 +08:00
|
|
|
|
<!--</ul>-->
|
|
|
|
|
<%# end %><!--end-->
|
2015-05-19 10:10:52 +08:00
|
|
|
|
<!--menu 左侧工具栏 -->
|
2015-05-27 10:43:03 +08:00
|
|
|
|
<%#--project_new_type: 1为开发组;2为科研组;3为朋友圈子--%>
|
2015-05-26 17:44:39 +08:00
|
|
|
|
|
2015-05-19 10:10:52 +08:00
|
|
|
|
<div id="project_memu_list">
|
|
|
|
|
<% if @project.project_new_type == 1 || @project.project_new_type.nil? %>
|
2016-01-13 10:08:48 +08:00
|
|
|
|
<%= render :partial => 'projects/development_group', :locals => {:project => @project} %>
|
2015-05-19 10:10:52 +08:00
|
|
|
|
<% elsif @project.project_new_type == 2 %>
|
2016-01-13 10:08:48 +08:00
|
|
|
|
<%= render :partial => 'projects/research_team', :locals => {:project => @project} %>
|
2015-05-19 10:10:52 +08:00
|
|
|
|
<% else %>
|
2016-01-13 10:08:48 +08:00
|
|
|
|
<%= render :partial => 'projects/friend_group', :locals => {:project => @project} %>
|
2015-05-19 10:10:52 +08:00
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
2015-05-26 17:44:39 +08:00
|
|
|
|
|
2015-05-19 10:10:52 +08:00
|
|
|
|
<!-- end -->
|
|
|
|
|
</div><!--项目侧导航 end-->
|
|
|
|
|
<div class="cl"></div>
|
2015-04-09 19:18:04 +08:00
|
|
|
|
|
2015-05-19 10:10:52 +08:00
|
|
|
|
<!-- 项目描述 -->
|
|
|
|
|
<div class="project_intro">
|
|
|
|
|
<div id="course_description" class="course_description">
|
|
|
|
|
<h4 ><%= l(:label_project_overview)%>:</h4>
|
|
|
|
|
<div id="course_description_content" class="break_word">
|
|
|
|
|
<%= textilizable(@project.description) if @project.description && !@project.description.blank? %>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="lg-foot" id="lg-foot" onclick="show_more_msg();">
|
|
|
|
|
<label id="expend_more_information" value="show_more"><%= l(:label_expend_information)%></label>
|
|
|
|
|
<span class="g-arr-down">
|
|
|
|
|
<img id="arrow" src="/images/jiantou.jpg" width="12" height="6" />
|
|
|
|
|
</span>
|
|
|
|
|
</div>
|
|
|
|
|
</div><!--项目简介 end-->
|
2014-09-15 10:58:14 +08:00
|
|
|
|
|
2015-05-19 10:10:52 +08:00
|
|
|
|
<!-- tag模块 -->
|
|
|
|
|
<div class="project_Label">
|
2016-01-20 18:37:39 +08:00
|
|
|
|
<h4 class="mb5"><%= l(:label_tag)%>:</h4>
|
2015-05-19 10:10:52 +08:00
|
|
|
|
<div class="tag_h">
|
|
|
|
|
<div id="tags">
|
|
|
|
|
<%= render :partial => 'tags/project_tag', :locals => {:obj => @project,:object_flag => "2"}%>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2015-04-07 12:48:47 +08:00
|
|
|
|
<div class="cl"></div>
|
2015-05-19 10:10:52 +08:00
|
|
|
|
</div><!--项目标签 end-->
|
2015-04-09 19:18:04 +08:00
|
|
|
|
</div>
|
2015-05-19 10:10:52 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div id="RSide" class="fl">
|
|
|
|
|
<%= render_flash_messages %>
|
|
|
|
|
<%= yield %>
|
|
|
|
|
<%= call_hook :view_layouts_base_content %>
|
|
|
|
|
<div style="clear:both;"></div>
|
|
|
|
|
</div>
|
|
|
|
|
<div style="clear:both;"></div>
|
|
|
|
|
</div><!--Container end-->
|
2015-08-25 14:09:37 +08:00
|
|
|
|
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<%= render :partial => 'layouts/footer' %>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
|
|
|
|
|
|
2015-05-19 10:10:52 +08:00
|
|
|
|
<div id="light" class="white_content02">
|
|
|
|
|
<!-- 这里写需弹出框的HTML代码 -->
|
|
|
|
|
<% text = @project.project_new_type == 1 ? "development_group" : (@project.project_new_type == 2 ? "research_group" : "friend_organization")%>
|
|
|
|
|
<div ><a href="javascript:void(0)" onClick="close_window('<%= text%>');" class="box_close" id="close_light"></a></div>
|
|
|
|
|
<div class=" mt10">
|
|
|
|
|
<h3 class="mb10 c_blue">请选择项目类型:</h3>
|
|
|
|
|
<ul class="mb10" id="project_type">
|
2015-09-24 11:19:07 +08:00
|
|
|
|
<li><input type="radio" name="project_type" <%= @project.project_new_type == 1 ? 'checked' : ''%> id="development_group"/><label class="f14"> 开发模式:<span class="f12 ml5 c_grey">面向小组开发,支持问题跟踪、代码托管、论坛交流等所有功能。</span></label></li>
|
|
|
|
|
<li><input type="radio" name="project_type" <%= @project.project_new_type == 2 ? 'checked' : ''%> id="research_group"/><label class="f14"> 研讨模式:<span class="f12 ml5 c_grey">面向小组研究,支持任务分工、论坛交流、资源分享等。</span></label></li>
|
|
|
|
|
<li><input type="radio" name="project_type" <%= @project.project_new_type == 3 ? 'checked' : ''%> id="friend_organization"/><label class="f14"> 圈子模式:<span class="f12 ml5 c_grey">面向好友分享,支持论坛交流、资源分享等。</span></label></li>
|
2015-05-19 10:10:52 +08:00
|
|
|
|
</ul>
|
|
|
|
|
<a href="javascript:void(0)" class="orange_btn" onclick="click_ok('<%= change_project_type_project_path @project%>');" >确定</a>
|
|
|
|
|
</div>
|
2015-05-27 10:43:03 +08:00
|
|
|
|
<!--项目的三种类型-->
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
|
function click_ok(url)
|
|
|
|
|
{
|
|
|
|
|
$('#light').css('display','none');
|
|
|
|
|
$('#fade').css('display','none');
|
|
|
|
|
//ajax处理请求
|
|
|
|
|
var project_type;
|
|
|
|
|
if($("#development_group").attr("checked") == "checked"){
|
|
|
|
|
project_type = 1;
|
|
|
|
|
}
|
|
|
|
|
else if($("#research_group").attr("checked") == "checked"){
|
|
|
|
|
project_type = 2;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
else if($("#friend_organization").attr("checked") == "checked"){
|
|
|
|
|
project_type = 3;
|
|
|
|
|
}
|
|
|
|
|
$.get(
|
|
|
|
|
url,
|
|
|
|
|
{ project_type: project_type},
|
|
|
|
|
function (data) {
|
|
|
|
|
if(data == 1)
|
|
|
|
|
{
|
|
|
|
|
$("#setting_project_type").replaceWith("<%= escape_javascript(project_type_link(l(:label_development_team), 1))%>");
|
2016-01-13 10:08:48 +08:00
|
|
|
|
$("#project_memu_list").html('<%= escape_javascript(render(:partial => 'projects/development_group', :locals => {:project => @project})) %>');
|
2015-05-27 10:43:03 +08:00
|
|
|
|
$("#close_light").attr("onClick","close_window('development_group');");
|
|
|
|
|
}
|
|
|
|
|
else if(data == 2)
|
|
|
|
|
{
|
|
|
|
|
$("#setting_project_type").replaceWith("<%= escape_javascript(project_type_link(l(:label_research_group), 2))%>");
|
2016-01-13 10:08:48 +08:00
|
|
|
|
$("#project_memu_list").html('<%= escape_javascript(render(:partial => 'projects/research_team', :locals => {:project => @project})) %>');
|
2015-05-27 10:43:03 +08:00
|
|
|
|
$("#close_light").attr("onClick","close_window('research_group');");
|
|
|
|
|
}
|
|
|
|
|
else if(data == 3)
|
|
|
|
|
{
|
|
|
|
|
$("#setting_project_type").replaceWith("<%= escape_javascript(project_type_link(l(:label_friend_organization), 3))%>");
|
2016-01-13 10:08:48 +08:00
|
|
|
|
$("#project_memu_list").html('<%= escape_javascript(render(:partial => 'projects/friend_group', :locals => {:project => @project})) %>');
|
2015-05-27 10:43:03 +08:00
|
|
|
|
$("#close_light").attr("onClick","close_window('friend_organization');");
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
alert("服务器异常,请与管理员联系");
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
);
|
|
|
|
|
}
|
2015-11-02 15:21:53 +08:00
|
|
|
|
|
|
|
|
|
function project_files_upload()
|
|
|
|
|
{
|
2016-01-06 18:07:35 +08:00
|
|
|
|
$('#ajax-modal').html('<%= escape_javascript(render :partial => 'files/upload_project_files',:locals => {:project => @project, :project_attachment_type => 1}) %>');
|
2015-11-02 15:21:53 +08:00
|
|
|
|
showModal('ajax-modal', '513px');
|
|
|
|
|
$('#ajax-modal').siblings().remove();
|
|
|
|
|
$('#ajax-modal').before("<a href='javascript:void(0)' onclick='hideModal()' style='margin-left: 480px;'><img src='/images/bid/close.png' width='26px' height='26px' /></a>");
|
2016-01-20 16:03:28 +08:00
|
|
|
|
$('#ajax-modal').parent().css("top","40%").css("left","36%").css("border","3px solid #269ac9");
|
2015-11-02 15:21:53 +08:00
|
|
|
|
$('#ajax-modal').parent().addClass("popbox_polls");
|
|
|
|
|
}
|
2016-01-18 16:18:40 +08:00
|
|
|
|
|
|
|
|
|
$("#expand_tools_expand").click(function(){
|
|
|
|
|
$("#navContent").toggle();
|
|
|
|
|
});
|
2015-05-27 10:43:03 +08:00
|
|
|
|
</script>
|
2015-05-19 10:10:52 +08:00
|
|
|
|
</div>
|
2015-12-17 15:15:00 +08:00
|
|
|
|
|
2015-05-19 10:10:52 +08:00
|
|
|
|
<div id="fade" class="black_overlay">123</div>
|
|
|
|
|
<%= render :partial => 'layouts/new_feedback' %>
|
|
|
|
|
<div id="ajax-indicator" style="display:none;">
|
|
|
|
|
<span><%= l(:label_loading) %></span>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="ajax-modal" style="display:none;"></div>
|
|
|
|
|
<%= call_hook :view_layouts_base_body_bottom %>
|
|
|
|
|
</body>
|
2014-09-15 10:58:14 +08:00
|
|
|
|
</html>
|
|
|
|
|
|