197 lines
7.7 KiB
Plaintext
197 lines
7.7 KiB
Plaintext
<!--里程碑详情开始-->
|
||
<div class="new_roadmap_conbox mb10">
|
||
<div class="new_roadmap_info_top clear ">
|
||
<a href="<%= project_roadmap_path(@project) %>" class="fl linkBlue2 mt3" >
|
||
<span class="new_roadmap_icons_back mr5"></span>
|
||
返回里程碑列表
|
||
</a>
|
||
<span class="ml5 mr5 fl f14">|</span>
|
||
<h4 class="fl new_roadmap_listtitle"><%= h(@version.name) %></h4>
|
||
<ul id="version_status_con_id">
|
||
<%= render :partial => 'versions/type_ico', :locals => {:version => @version} %>
|
||
</ul>
|
||
<p class="fr mt3 c_grey02">
|
||
<span class="muban-icons-clock "></span>
|
||
<% if @version.completed? %>
|
||
<%= format_date(@version.effective_date) %>
|
||
<% elsif @version.effective_date %>
|
||
<%= due_date_distance_in_words(@version.effective_date) %>(<%= format_date(@version.effective_date) %>)
|
||
<% end %>
|
||
</p>
|
||
</div>
|
||
<div class="clear new_roadmap_listbox">
|
||
<ul class="new_roadmap_list_txt clear mb5">
|
||
<%= render :partial => 'versions/overview', :locals => {:version => @version} %>
|
||
</ul>
|
||
<div class="c_grey02">
|
||
<p><%= @version.description %></p>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="new_roadmap_conbox " >
|
||
<div class=" clear">
|
||
<ul class="new_roadmap_nav fl" >
|
||
<li id="new_roadmap_nav_1" class="new_roadmap_nav_hover " onclick="HoverLi(1);">
|
||
<a href="javascript:void(0);" id="new_roadmap_type_1" class="new_roadmap_type_nomal" >所有issues</a>
|
||
</li>
|
||
<li id="new_roadmap_nav_2" onclick="HoverLi(2);" >
|
||
<a href="javascript:void(0);" id="new_roadmap_type_2" class="new_roadmap_type_nomal" >issues统计</a>
|
||
</li>
|
||
</ul>
|
||
</div>
|
||
<div id="new_roadmap_content_1">
|
||
<div class="pd15box">
|
||
<table class="new_roadmap_table " cellpadding="0" cellspacing="0">
|
||
<thead>
|
||
<tr>
|
||
<th>ID</th>
|
||
<th>标题</th>
|
||
<th>类型</th>
|
||
<th>指派给</th>
|
||
<th>更新时间</th>
|
||
<th>状态</th>
|
||
<th>完成度</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
<% @issues.each do |issue| %>
|
||
<tr>
|
||
<td>#<%= issue.id %></td>
|
||
<td><p class="new_roadmap_info_title" title="<%= issue.subject %>"><%= issue.subject %></p> </td>
|
||
<td> <%= issue.tracker %> </td>
|
||
<td><p class="new_roadmap_info_name"><%= User.find(issue.try(:assigned_to_id)).show_name %></p></td>
|
||
<td><%= format_time issue.updated_on %></td>
|
||
<td><%= issue.status.name %></td>
|
||
<td><span class="<%= issue.done_ratio == 100 ? "c_green" : "c_red" %>" ><%= issue.done_ratio %>%</span></td>
|
||
</tr>
|
||
<% end %>
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
<%= link_to "导出", version_path(@version, :format => 'xls'), :class=>"btn_newpro_grey fl mt10 ml15 "%>
|
||
<div class="pages fr" style="width:auto; display:inline-block; margin-right:10px;">
|
||
<div>
|
||
<%= pagination_links_full @issue_pages, @issue_count, :per_page_links => false, :remote => false, :flag => true, :is_new => true%>
|
||
</div>
|
||
<div class="cl"></div>
|
||
</div><!--翻页 end-->
|
||
|
||
<div class="cl"></div>
|
||
|
||
</div><!--new_roadmap_content_1 end-->
|
||
<div id="new_roadmap_content_2" class="undis">
|
||
<!--缺陷统计开始-->
|
||
<div class=" ml15 mr10 mb15">
|
||
<%= render :partial => 'versions/issue_statistics', :locals => {:version => @version} %>
|
||
|
||
</div>
|
||
<!--缺陷列表结束-->
|
||
|
||
</div><!--new_roadmap_content_2 end-->
|
||
</div><!--new_roadmap end-->
|
||
<!--里程碑详情结束-->
|
||
|
||
|
||
|
||
|
||
<!--modified by young-->
|
||
<div class="project_r_h">
|
||
<h2 class="project_h2"><%= l(:label_roadmap) %></h2>
|
||
</div>
|
||
<div class="contextual" style="overflow: hidden;text-overflow: ellipsis;white-space: nowrap;">
|
||
<%= link_to(l(:button_edit), edit_version_path(@version), :class => 'icon icon-edit') if User.current.allowed_to?(:manage_versions, @version.project) %>
|
||
<%#= link_to_if_authorized(l(:button_edit_associated_wikipage,
|
||
:page_title => @version.wiki_page_title.truncate(30, omission: '...')),
|
||
{:controller => 'wiki',
|
||
:action => 'edit',
|
||
:project_id => @version.project,
|
||
:id => Wiki.titleize(@version.wiki_page_title)},
|
||
:class => 'icon icon-edit') unless @version.wiki_page_title.blank? || @version.project.wiki.nil? %>
|
||
<%= delete_link version_path(@version, :back_url => url_for(:controller => 'versions',
|
||
:action => 'index',
|
||
:project_id => @version.project)) if User.current.allowed_to?(:manage_versions, @version.project) %>
|
||
<%= call_hook(:view_versions_show_contextual, { :version => @version, :project => @project }) %>
|
||
</div>
|
||
|
||
<h3 style="word-break: break-all;word-wrap: break-word;color: #64BDD9;">
|
||
<%= h(@version.name) %>
|
||
</h3>
|
||
|
||
<div id="roadmap">
|
||
<%= render :partial => 'versions/overview', :locals => {:version => @version} %>
|
||
<%= render(:partial => "wiki/content", :locals => {:content => @version.wiki_page.content}) if @version.wiki_page %>
|
||
|
||
<div class="splitcontent">
|
||
<% if @version.estimated_hours > 0 || User.current.allowed_to?(:view_time_entries, @project) %>
|
||
<fieldset class="time_tracter f14"><legend><%= l(:label_time_tracking) %></legend>
|
||
<table>
|
||
<tr>
|
||
<th>
|
||
<p class="fl c_grey f12"><%= l(:field_estimated_hours) %>:</p>
|
||
</th>
|
||
<td class="total-hours">
|
||
<%= html_hours(l_hours(@version.estimated_hours)) %>
|
||
</td>
|
||
</tr>
|
||
<% if User.current.allowed_to?(:view_time_entries, @project) %>
|
||
<tr>
|
||
<th>
|
||
<p class="fr c_grey f12"><%= l(:label_spent_time) %>:</p>
|
||
</th>
|
||
<td class="total-hours">
|
||
<%= html_hours(l_hours(@version.spent_hours)) %>
|
||
</td>
|
||
</tr>
|
||
<% end %>
|
||
</table>
|
||
</fieldset>
|
||
<% end %>
|
||
|
||
<div id="status_by" style="margin-top:10px;"><!--by young-->
|
||
<%= render_issue_status_by(@version, params[:status_by]) if @version.fixed_issues.count > 0 %>
|
||
</div>
|
||
</div>
|
||
|
||
<% if @issues.present? %>
|
||
<%= form_tag({}) do -%>
|
||
<table class="list related-issues">
|
||
<caption>
|
||
<%= l(:label_related_issues) %>
|
||
</caption>
|
||
<%- @issues.each do |issue| -%>
|
||
<tr class="hascontextmenu">
|
||
<td class="checkbox">
|
||
<%= check_box_tag 'ids[]', issue.id, false, :id => nil %>
|
||
</td>
|
||
<td>
|
||
<%= link_to_issue(issue, :project => (@project != issue.project)) %>
|
||
</td>
|
||
</tr>
|
||
<% end %>
|
||
</table>
|
||
<% end %>
|
||
<%= context_menu issues_context_menu_path %>
|
||
<% end %>
|
||
</div>
|
||
|
||
<%= call_hook :view_versions_show_bottom, :version => @version %>
|
||
|
||
<% html_title @version.name %>
|
||
|
||
<script>
|
||
//issues列表
|
||
function g(o){
|
||
return document.getElementById(o);
|
||
}
|
||
function HoverLi(n){
|
||
//如果有N个标签,就将i<=N;
|
||
for(var i=1;i<=2;i++){
|
||
g('new_roadmap_nav_'+i).className='new_roadmap_nav_nomal';
|
||
g('new_roadmap_type_'+i).className='new_roadmap_type_nomal';
|
||
g('new_roadmap_content_'+i).className='undis';
|
||
}
|
||
g('new_roadmap_nav_'+n).className='new_roadmap_nav_hover';
|
||
g('new_roadmap_type_'+n).className='new_roadmap_type_hover';
|
||
g('new_roadmap_content_'+n).className='dis';
|
||
}
|
||
</script> |