|
|
|
@ -29,7 +29,7 @@
|
|
|
|
|
<div class="top-content">
|
|
|
|
|
<table>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="info_font" style="width: 240px;" rowspan="2"><a href="http://<%= Setting.host_name%>" style="color: #15bccf;"> 软件项目托管社区 </a></td>
|
|
|
|
|
<td class="info_font" style="width: 240px;" rowspan="2"><a href="http://<%= Setting.host_name%>" style="color: #15bccf;"> <%= l(:label_projects_community)%> </a></td>
|
|
|
|
|
<td style="width: 430px; color: #15bccf"><strong><%= l(:label_user_location) %> : </strong></td>
|
|
|
|
|
<td rowspan="2" width="250px">
|
|
|
|
|
<div class="top-content-search">
|
|
|
|
@ -105,13 +105,13 @@
|
|
|
|
|
<div class="pr_info_name">
|
|
|
|
|
<%= link_to @project.name, project_path(@project) %>
|
|
|
|
|
<% if !@project.is_public? %>
|
|
|
|
|
<span class="img_private">私有</span>
|
|
|
|
|
<span class="img_private"><%= l(:label_private)%></span>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<div class="pr_info_score">
|
|
|
|
|
<% if @project.project_type == 0 %>
|
|
|
|
|
<%= l(:label_project_grade)%> :
|
|
|
|
|
<%= l(:label_project_score)%> :
|
|
|
|
|
<%= link_to(format("%.2f" ,project_scores(@project) ).to_i, {:controller => 'projects',
|
|
|
|
|
:action => 'show_projects_score',
|
|
|
|
|
:remote => true,
|
|
|
|
@ -121,17 +121,17 @@
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pr_info_foot">
|
|
|
|
|
<%= l(:label_member) %>(<a class="info_foot_num" href="#" target="_blank"><%= link_to "#{@project.members.count}", project_member_path(@project) %></a>)
|
|
|
|
|
<span>| </span><%= l(:label_user_watchered) %>(<a class="info_foot_num" href="#" target="_blank"><%= link_to @project.watcher_users.count, :controller=>"projects", :action=>"watcherlist", :id => @project %></a>)
|
|
|
|
|
<span>| </span><%= l(:label_user_watcher) %>(<a class="info_foot_num" href="#" target="_blank"><%= link_to @project.watcher_users.count, :controller=>"projects", :action=>"watcherlist", :id => @project %></a>)
|
|
|
|
|
<span>| </span><%= l(:project_module_attachments) %>(<a class="info_foot_num" href="#" target="_blank"><%= link_to "#{@project.attachments.count}", project_files_path(@project) %></a>)</div>
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
</div><!--项目信息 end-->
|
|
|
|
|
|
|
|
|
|
<div class="subNavBox">
|
|
|
|
|
<% if User.current.member_of?(@project) %>
|
|
|
|
|
<div class="subNav currentDd currentDt subNav_jiantou">邀请</div>
|
|
|
|
|
<div class="subNav currentDd currentDt subNav_jiantou"><%= l(:label_invite)%></div>
|
|
|
|
|
<ul class="navContent " style="display:block; padding-left: 0px; margin-top:0px;">
|
|
|
|
|
<li><%= link_to "发送邮件邀请新用户", :controller=>"projects", :action=>"invite_members_by_mail", :id => @project %></li>
|
|
|
|
|
<li><%= link_to "邀请Trustie注册用户", :controller=>"projects", :action=>"invite_members", :id => @project %></li>
|
|
|
|
|
<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 %>
|
|
|
|
|
<div class="subNav">
|
|
|
|
@ -141,27 +141,27 @@
|
|
|
|
|
<%= 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>
|
|
|
|
|
<%= 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>
|
|
|
|
|
<div class="subNav">
|
|
|
|
|
<%= link_to "讨论区", project_boards_path(@project), :style => "color:#3CA5C6" %>
|
|
|
|
|
<%= link_to l(:project_module_boards), project_boards_path(@project), :style => "color:#3CA5C6" %>
|
|
|
|
|
<span class="subnav_num">(<%= @project.boards.first.topics.count %>)</span>
|
|
|
|
|
<% if User.current.logged? && User.current.member_of?(@project) %>
|
|
|
|
|
<%= link_to "+发贴", project_boards_path(@project, :flag => true), :layout => 'base_projects',:style => "font-size:12px;color:#fff; padding:1px 3px 3px 3px;height:18px;margin-top:4px;background:#28be6c;float:right;line-height:20px;" %>
|
|
|
|
|
<%= link_to "+"+l(:project_module_boards_post), project_boards_path(@project, :flag => true), :layout => 'base_projects',:style => "font-size:12px;color:#fff; padding:1px 3px 3px 3px;height:18px;margin-top:4px;background:#28be6c;float:right;line-height:20px;" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<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.logged? && User.current.member_of?(@project) %>
|
|
|
|
|
<%= link_to "+上传资源", 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), 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;" %>
|
|
|
|
|
<% end %>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="subNav">
|
|
|
|
|
<%= link_to l(:field_user_active_changeset), {:controller => 'repositories', :action => 'show', :id => @project.id}, :style => "color:#3CA5C6" %>
|
|
|
|
|
<%= 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.logged? && User.current.member_of?(@project) %>
|
|
|
|
|
<%= link_to "+创建版本库", 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;" %>
|
|
|
|
|
<%= 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>
|
|
|
|
|
|
|
|
|
@ -172,13 +172,13 @@
|
|
|
|
|
</div><!--项目侧导航 end-->
|
|
|
|
|
<div class="cl"></div>
|
|
|
|
|
<div class="project_intro">
|
|
|
|
|
<h4 class="project_h4">项目简介:</h4><%= @project.description %>
|
|
|
|
|
<h4 class="project_h4"><%= l(:label_project_overview)%></h4><%= @project.description %>
|
|
|
|
|
<div class="lg-foot">
|
|
|
|
|
展开更多信息 <span class="g-arr-down"><img src="/images/new_project/jiantou.jpg" width="12" height="6" /></span>
|
|
|
|
|
<%= l(:label_expend_information)%> <span class="g-arr-down"><img src="/images/new_project/jiantou.jpg" width="12" height="6" /></span>
|
|
|
|
|
</div>
|
|
|
|
|
</div><!--项目简介 end-->
|
|
|
|
|
<div class="project_Label">
|
|
|
|
|
<h4 class="project_h4">标签:</h4>
|
|
|
|
|
<h4 class="project_h4"><%= l(:label_tag)%>:</h4>
|
|
|
|
|
<div class="tag_h" >
|
|
|
|
|
<div class="user_tags">
|
|
|
|
|
<div id="tags">
|
|
|
|
|