|
|
<% @nav_dispaly_project_label = 1
|
|
|
@nav_dispaly_forum_label = 1 %>
|
|
|
<%#@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 %>
|
|
|
<%= javascript_heads %>
|
|
|
<%= heads_for_theme %>
|
|
|
<%= stylesheet_link_tag 'public', 'pleft', 'project' %>
|
|
|
<%= javascript_include_tag 'project', 'header' %>
|
|
|
<%= call_hook :view_layouts_base_html_head %>
|
|
|
<!-- page specific tags -->
|
|
|
<%= yield :header_tags -%>
|
|
|
</head>
|
|
|
<!--add by huang-->
|
|
|
<body>
|
|
|
<div id="Container">
|
|
|
<%= render :partial => 'layouts/new_header'%>
|
|
|
<div class="cl"></div>
|
|
|
|
|
|
<!--TopBar begin-->
|
|
|
<div id="TopBar">
|
|
|
<div class="topbar_info02 fl">
|
|
|
<h2>
|
|
|
<a href="http://<%= Setting.host_name %>" target="_blank" class="c_blue">
|
|
|
<%= l(:label_projects_community) %>
|
|
|
</a>
|
|
|
</h2>
|
|
|
<p>
|
|
|
<%= l(:label_user_location) %> :
|
|
|
<%= link_to l(:field_homepage), home_path %>
|
|
|
>
|
|
|
<a href="http://<%= Setting.host_name %>">
|
|
|
<%=l(:label_project_hosting_platform) %>
|
|
|
</a>
|
|
|
>
|
|
|
<%= link_to @project.name, nil %>
|
|
|
</p>
|
|
|
</div>
|
|
|
<div class="search fl">
|
|
|
|
|
|
<%= form_tag(projects_search_path, :method => :get, :id => "project_search_form", :class => "search_form") do %>
|
|
|
<%= text_field_tag 'name', params[:name], :placeholder => "项目名称", :class => "search_text fl", :onkeyup => "regexName('#{l(:label_search_conditions_not_null)}');" %>
|
|
|
<a href="#" onclick="submitSerch('<%= l(:label_search_conditions_not_null) %>');" class="search_btn fl f14 c_white" >
|
|
|
<%= l(:label_search)%>
|
|
|
</a>
|
|
|
<br />
|
|
|
<span id="project_name_span" style="float: left"></span>
|
|
|
<% end %>
|
|
|
</div>
|
|
|
</div><!--TopBar end-->
|
|
|
<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">
|
|
|
<%= render 'layouts/join_exit_project' %>
|
|
|
</div>
|
|
|
<!-- 项目得分 -->
|
|
|
<div class="cl"></div>
|
|
|
<div>
|
|
|
<a class="pr_info_name fl c_dark fb" href="javascript:void(0)" target="_blank">
|
|
|
<%= l(:label_project_name) %><%= @project.name %></a>
|
|
|
<% if @project.is_public? %>
|
|
|
<span class="img_private"><%= l(:label_public)%></span>
|
|
|
<% else %>
|
|
|
<span class="img_private"><%= l(:label_private)%></span>
|
|
|
<% end %>
|
|
|
</div>
|
|
|
<div class="cl"></div>
|
|
|
<div>
|
|
|
<% if @project.project_type == 0 %>
|
|
|
<span class="fb f14 "><%= l(:label_project_score)%> :</span>
|
|
|
<%= link_to(format("%.2f" ,project_scores(@project) ).to_i, {:controller => 'projects',
|
|
|
:action => 'show_projects_score',
|
|
|
:remote => true,
|
|
|
:id => @project.id
|
|
|
}, :class => "c_orange f14" ) %>
|
|
|
<% end %>
|
|
|
</div>
|
|
|
<!--参数-->
|
|
|
<div class="pr_info_foot">
|
|
|
<%= l(:label_member) %>(<%= link_to "#{@project.members.count}", project_member_path(@project), :class => 'info_foot_num c_blue' %>)
|
|
|
<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' %>)
|
|
|
<span>| </span>
|
|
|
<%= l(:project_module_attachments) %>(
|
|
|
<% 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), :class => 'info_foot_num c_blue' %></span>)
|
|
|
</div>
|
|
|
<div class="cl"></div>
|
|
|
</div><!--参数 end-->
|
|
|
<!--邀请加入-->
|
|
|
<div class="subNavBox">
|
|
|
<% if User.current.member_of?(@project) %>
|
|
|
<div class="subNav currentDd currentDt subNav_jiantou"><%= l(:label_invite)%></div>
|
|
|
<ul class="navContent " style="display:block">
|
|
|
<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>
|
|
|
</ul>
|
|
|
<% end %><!--end-->
|
|
|
<!--menu -->
|
|
|
<div class="subNav">
|
|
|
<%= link_to l(:label_activity), {:controller => 'projects', :action => 'show', :id => @project.id}, :class => "f14 c_blue02" %>
|
|
|
<% unless ForgeActivity.where("project_id = ?", @project.id).count == 0 %>
|
|
|
<a class="subnav_num">(<%= ForgeActivity.where("project_id = ?", @project.id).count %>)</a>
|
|
|
<% end %>
|
|
|
</div>
|
|
|
<% unless @project.enabled_modules.where("name = 'issue_tracking'").empty? %>
|
|
|
<div class="subNav">
|
|
|
<%= link_to l(:label_issue_tracking), project_issues_path(@project), :class => "f14 c_blue02" %>
|
|
|
<% unless @project.issues.count == 0 %>
|
|
|
<a class="subnav_num">(<%= @project.issues.count %>)</a><span>
|
|
|
<% end %>
|
|
|
<% if User.current.member_of?(@project) %>
|
|
|
<%= link_to "+"+l(:label_release_issue), new_project_issue_path(@project) , :class => "subnav_green" %></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), :class => "f14 c_blue02" %>
|
|
|
<% unless @project.boards.first.topics.count == 0 %>
|
|
|
<a class="subnav_num">(<%= @project.boards.first.topics.count %>)</a>
|
|
|
<% end %>
|
|
|
<% if User.current.member_of?(@project) %>
|
|
|
<%= link_to "+"+l(:project_module_boards_post), project_boards_path(@project, :flag => true), :layout => 'base_projects', :class => "subnav_green ml105" %>
|
|
|
<% end %>
|
|
|
</div>
|
|
|
<% end%>
|
|
|
<% unless @project.enabled_modules.where("name = 'files'").empty? %>
|
|
|
<div class="subNav">
|
|
|
<%= link_to l(:project_module_files), project_files_path(@project), :class => "f14 c_blue02" %>
|
|
|
<% unless attaments_num == 0 %>
|
|
|
<a class="subnav_num">(<%= attaments_num %>)</a>
|
|
|
<% end %>
|
|
|
<% if User.current.member_of?(@project) %>
|
|
|
<%= link_to "+"+l(:label_upload_files), project_files_path(@project,:flag => true), :class => "subnav_green ml95" %>
|
|
|
<% end %>
|
|
|
</div>
|
|
|
<% end%>
|
|
|
<% unless @project.enabled_modules.where("name = 'repository'").empty? || @project.repositories.count == 0 %>
|
|
|
<div class="subNav">
|
|
|
<%= link_to l(:project_module_repository), {:controller => 'repositories', :action => 'show', :id => @project.id}, :class => "f14 c_blue02" %>
|
|
|
<a class="subnav_num">(<%= @project.repositories.count %>)</a>
|
|
|
<%# 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 %><!--meny end -->
|
|
|
<!-- more -->
|
|
|
<div class="subNav subNav_jiantou"><%= l(:label_project_more) %></div>
|
|
|
<ul class="navContent">
|
|
|
<%= render 'projects/tools_expand' %>
|
|
|
</ul>
|
|
|
</div><!--项目侧导航 end-->
|
|
|
<div class="cl"></div>
|
|
|
<!-- 项目描述 -->
|
|
|
<div class="project_intro">
|
|
|
<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>
|
|
|
<!-- tag模块 -->
|
|
|
<div class="project_Label">
|
|
|
<h4 class="mb5"><%= l(:label_tag)%>:</h4>
|
|
|
<div class="tag_h">
|
|
|
<div id="tags">
|
|
|
<%= render :partial => 'tags/project_tag', :locals => {:obj => @project,:object_flag => "2"}%>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="cl"></div>
|
|
|
</div><!--项目标签 end-->
|
|
|
</div>
|
|
|
</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 class="cl"></div>
|
|
|
<%= render :partial => 'layouts/new_footer'%>
|
|
|
<div class="cl"></div>
|
|
|
</div><!--Container end-->
|
|
|
<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>
|
|
|
</html>
|
|
|
|