里程碑列表
This commit is contained in:
parent
cfbabf3eac
commit
a3da43b793
|
@ -34,43 +34,81 @@ class VersionsController < ApplicationController
|
|||
def index
|
||||
# 顶部导航
|
||||
@project_menu_type = 7
|
||||
|
||||
type = params[:type]
|
||||
version_all_count = Version.where(:project_id => @project.id)
|
||||
case type
|
||||
when nil,"1"
|
||||
@versions = @project.versions
|
||||
when "2"
|
||||
@versions = @project.versions.where(:status => 'open')
|
||||
when "3"
|
||||
@versions = @project.versions.where(:status => 'locked')
|
||||
when "4"
|
||||
@versions = @project.versions.where(:status => 'closed')
|
||||
end
|
||||
@versions_count = Version.where(:project_id => @project.id).count
|
||||
@versions_open_count = Version.where(:project_id => @project.id, :status => "open").count
|
||||
@versions_locked_count = Version.where(:project_id => @project.id, :status => "locked").count
|
||||
@versions_closed_count = Version.where(:project_id => @project.id, :status => "closed").count
|
||||
@versions_count = version_type_count(type, @versions_count, @versions_open_count, @versions_locked_count, @versions_closed_count)
|
||||
@limit = 10
|
||||
@is_remote = true
|
||||
@version_pages = Paginator.new @versions_count, @limit, params['page'] || 1
|
||||
@offset ||= @version_pages.offset
|
||||
@versions = paginateHelper @versions, @limit
|
||||
respond_to do |format|
|
||||
format.html {
|
||||
@trackers = @project.trackers.sorted.all
|
||||
retrieve_selected_tracker_ids(@trackers, @trackers.select {|t| t.is_in_roadmap?})
|
||||
@with_subprojects = params[:with_subprojects].nil? ? Setting.display_subprojects_issues? : (params[:with_subprojects] == '1')
|
||||
project_ids = @with_subprojects ? @project.self_and_descendants.collect(&:id) : [@project.id]
|
||||
format.html
|
||||
format.js
|
||||
format.api
|
||||
# format.html {
|
||||
# @trackers = @project.trackers.sorted.all
|
||||
# retrieve_selected_tracker_ids(@trackers, @trackers.select {|t| t.is_in_roadmap?})
|
||||
# @with_subprojects = params[:with_subprojects].nil? ? Setting.display_subprojects_issues? : (params[:with_subprojects] == '1')
|
||||
# project_ids = @with_subprojects ? @project.self_and_descendants.collect(&:id) : [@project.id]
|
||||
#
|
||||
# @versions = @project.shared_versions || []
|
||||
# @versions += @project.rolled_up_versions.visible if @with_subprojects
|
||||
# #added by young
|
||||
# @versions = @versions.uniq.reverse#Modified by young
|
||||
# unless params[:completed]
|
||||
# @completed_versions = @versions.select {|version| version.closed? || version.completed? }
|
||||
# @versions -= @completed_versions
|
||||
# end
|
||||
# @offset, @limit = api_offset_and_limit({:limit => 4})
|
||||
# @versions_count = @versions.count
|
||||
# @versions_pages = Paginator.new @versions_count, @limit, params['page']
|
||||
# @offset ||= @versions_pages.offset
|
||||
# @versions = @versions.slice(@offset, @limit)
|
||||
# #end by young
|
||||
#
|
||||
# @issues_by_version = {}
|
||||
# if @selected_tracker_ids.any? && @versions.any?
|
||||
# issues = Issue.visible.all(
|
||||
# :include => [:project, :status, :tracker, :priority, :fixed_version],
|
||||
# :conditions => {:tracker_id => @selected_tracker_ids, :project_id => project_ids, :fixed_version_id => @versions.map(&:id)},
|
||||
# :order => "#{Project.table_name}.lft, #{Tracker.table_name}.position, #{Issue.table_name}.id"
|
||||
# )
|
||||
# @issues_by_version = issues.group_by(&:fixed_version)
|
||||
# end
|
||||
# @versions.reject! {|version| !project_ids.include?(version.project_id) && @issues_by_version[version].blank?}
|
||||
# }
|
||||
# format.api {
|
||||
# @versions = @project.shared_versions.all
|
||||
# }
|
||||
end
|
||||
end
|
||||
|
||||
@versions = @project.shared_versions || []
|
||||
@versions += @project.rolled_up_versions.visible if @with_subprojects
|
||||
#added by young
|
||||
@versions = @versions.uniq.reverse#Modified by young
|
||||
unless params[:completed]
|
||||
@completed_versions = @versions.select {|version| version.closed? || version.completed? }
|
||||
@versions -= @completed_versions
|
||||
end
|
||||
@offset, @limit = api_offset_and_limit({:limit => 4})
|
||||
@versions_count = @versions.count
|
||||
@versions_pages = Paginator.new @versions_count, @limit, params['page']
|
||||
@offset ||= @versions_pages.offset
|
||||
@versions = @versions.slice(@offset, @limit)
|
||||
#end by young
|
||||
|
||||
@issues_by_version = {}
|
||||
if @selected_tracker_ids.any? && @versions.any?
|
||||
issues = Issue.visible.all(
|
||||
:include => [:project, :status, :tracker, :priority, :fixed_version],
|
||||
:conditions => {:tracker_id => @selected_tracker_ids, :project_id => project_ids, :fixed_version_id => @versions.map(&:id)},
|
||||
:order => "#{Project.table_name}.lft, #{Tracker.table_name}.position, #{Issue.table_name}.id"
|
||||
)
|
||||
@issues_by_version = issues.group_by(&:fixed_version)
|
||||
end
|
||||
@versions.reject! {|version| !project_ids.include?(version.project_id) && @issues_by_version[version].blank?}
|
||||
}
|
||||
format.api {
|
||||
@versions = @project.shared_versions.all
|
||||
}
|
||||
# 统计各种类型数量
|
||||
def version_type_count type, all_count, opened_count, locked_count, closed_count
|
||||
case type
|
||||
when nil, "1"
|
||||
all_count
|
||||
when "2"
|
||||
opened_count
|
||||
when "3"
|
||||
locked_count
|
||||
when "4"
|
||||
closed_count
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -54,4 +54,18 @@ module VersionsHelper
|
|||
def status_by_options_for_select(value)
|
||||
options_for_select(STATUS_BY_CRITERIAS.collect {|criteria| [l("field_#{criteria}".to_sym), criteria]}, value)
|
||||
end
|
||||
|
||||
# 通过类型显示不同的样式
|
||||
def get_version_type type
|
||||
case type
|
||||
when "open"
|
||||
"roadmap_blueicon"
|
||||
when "locked"
|
||||
"roadmap_greenicon"
|
||||
when "closed"
|
||||
"roadmap_greyicon"
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -35,12 +35,11 @@
|
|||
<%= render :partial => 'layouts/base_project_top' %>
|
||||
</div>
|
||||
|
||||
<div class="fl">
|
||||
<%= render_flash_messages %>
|
||||
<%= yield %>
|
||||
<%= call_hook :view_layouts_base_content %>
|
||||
<div style="clear:both;"></div>
|
||||
</div>
|
||||
<%= render_flash_messages %>
|
||||
<%= yield %>
|
||||
<%= call_hook :view_layouts_base_content %>
|
||||
<div style="clear:both;"></div>
|
||||
|
||||
<div style="clear:both;"></div>
|
||||
</div>
|
||||
|
||||
|
|
|
@ -0,0 +1,36 @@
|
|||
<% @versions.each do |version| %>
|
||||
<div class="clear new_roadmap_listbox">
|
||||
<div class="clear">
|
||||
<h4 class="fl new_roadmap_listtitle"><%= link_to_version version, :name => version_anchor(version) %></h4><span class="fl <%= get_version_type(version.status) %> mt3 ml5"></span>
|
||||
<%= link_to "导出", version_path(version, :format => 'xls'), :class => "btn_newpro_grey fr" %>
|
||||
<a href="javascript:void(0);" class="roadmap_icons_del fr mt5 mr5" alt="删除"></a>
|
||||
<a href="javascript:void(0);" class="roadmap_icons_edit fr mt5 " alt="编辑"></a>
|
||||
</div>
|
||||
<ul class="new_roadmap_list_txt clear mb5">
|
||||
<li>完成 <span class="ml5 c_red"><%= version.closed_percent %> </span></li>
|
||||
<li>Issues<span class="ml5 "><%= version.issues_count %> </span></li>
|
||||
<li>已关闭<span class="ml5 "><%= version.closed_issues_count %> </span></li>
|
||||
<li>
|
||||
<% if version.completed? %>
|
||||
<span></span><%= format_date(version.effective_date) %>
|
||||
<% elsif version.effective_date %>
|
||||
<span class="muban-icons-clock"></span><%= due_date_distance_in_words(version.effective_date) %>(<%= format_date(version.effective_date) %>)
|
||||
<% end %>
|
||||
<!--<span ></span>截止日期剩余 5天(2016-10-31)</li>-->
|
||||
</ul>
|
||||
<div class="c_grey">
|
||||
<p><%= version.description %></p>
|
||||
</div>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
|
||||
<div style="text-align:center;">
|
||||
<div class="pages" style="width:auto; display:inline-block;">
|
||||
<ul id="homework_pository_ref_pages">
|
||||
<%= pagination_links_full @version_pages, @versions_count, :per_page_links => false, :remote => @is_remote, :flag => true, :is_new => true %>
|
||||
</ul>
|
||||
<div class="cl"></div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="cl"></div>
|
|
@ -1,317 +1,34 @@
|
|||
<!--里程碑列表开始-->
|
||||
<div class="new_roadmap_conbox " >
|
||||
<div class="new_roadmap_navbox 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" >所有<span id="new_roadmap_num_1" class="new_roadmap_nav_taghover ml5">210</span></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" >打开<span id="new_roadmap_num_2" class="new_roadmap_nav_tagnomal ml5">25</span></a>
|
||||
</li>
|
||||
<li id="new_roadmap_nav_3" onclick="HoverLi(3);" >
|
||||
<a href="javascript:void(0);" id="new_roadmap_type_3" class="new_roadmap_type_nomal" >锁定<span id="new_roadmap_num_3" class="new_roadmap_nav_tagnomal ml5">5</span></a>
|
||||
</li>
|
||||
<li id="new_roadmap_nav_4" onclick="HoverLi(4);" >
|
||||
<a href="javascript:void(0);" id="new_roadmap_type_4" class="new_roadmap_type_nomal" >关闭 <span id="new_roadmap_num_4" class="new_roadmap_nav_tagnomal ml5">5</span></a>
|
||||
</li>
|
||||
</ul>
|
||||
<a href="javascript:void(0);" class="btn btn-green fr mr15 mt10"> 新建 </a>
|
||||
</div>
|
||||
<div id="new_roadmap_content_1">
|
||||
<div class="clear new_roadmap_listbox">
|
||||
<div class="clear">
|
||||
<h4 class="fl new_roadmap_listtitle"><a href="javascript:void(0);" class="">Version3.5 </a></h4><span class="fl roadmap_blueicon mt3 ml5"></span>
|
||||
<a href="javascript:void(0);" class="btn_newpro_grey fr " alt="导出">导出</a>
|
||||
<a href="javascript:void(0);" class="roadmap_icons_del fr mt5 mr5" alt="删除"></a>
|
||||
<a href="javascript:void(0);" class="roadmap_icons_edit fr mt5 " alt="编辑"></a>
|
||||
|
||||
</div>
|
||||
<ul class="new_roadmap_list_txt clear mb5">
|
||||
<li>完成 <span class="ml5 c_red">30% </span></li>
|
||||
<li>issues<span class="ml5 ">20 </span></li>
|
||||
<li>已关闭<span class="ml5 ">6 </span></li>
|
||||
<li><span class="muban-icons-clock "></span>截止日期剩余 5天(2016-10-31)</li>
|
||||
<div class="new_roadmap_conbox mb10" >
|
||||
<div class="new_roadmap_navbox clear">
|
||||
<ul class="new_roadmap_nav fl" >
|
||||
<li class="new_roadmap_nav_hover">
|
||||
<%= link_to "所有<span class='new_roadmap_nav_taghover ml5'>#{@versions_count}</span>".html_safe, project_roadmap_path(@project, :type => "1"), :remote => true, :class => "new_roadmap_type_nomal", :id => "new_roadmap_type_1" %>
|
||||
</li>
|
||||
<li>
|
||||
<%= link_to "打开<span class='new_roadmap_nav_taghover ml5'>#{@versions_open_count}</span>".html_safe, project_roadmap_path(@project, :type => "2"), :remote => true, :class => "new_roadmap_type_nomal", :id => "new_roadmap_type_1" %>
|
||||
</li>
|
||||
<li>
|
||||
<%= link_to "锁定<span class='new_roadmap_nav_taghover ml5'>#{@versions_locked_count}</span>".html_safe, project_roadmap_path(@project, :type => "3"), :remote => true, :class => "new_roadmap_type_nomal", :id => "new_roadmap_type_1" %>
|
||||
</li>
|
||||
<li>
|
||||
<%= link_to "关闭<span class='new_roadmap_nav_taghover ml5'>#{@versions_closed_count}</span>".html_safe, project_roadmap_path(@project, :type => "4"), :remote => true, :class => "new_roadmap_type_nomal", :id => "new_roadmap_type_1" %>
|
||||
</li>
|
||||
</ul>
|
||||
<div class="c_grey">
|
||||
<p>里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息。</p>
|
||||
</div>
|
||||
<a href="javascript:void(0);" class="btn btn-green fr mr15 mt10"> 新建 </a>
|
||||
</div>
|
||||
<div class="clear new_roadmap_listbox">
|
||||
<div class="clear">
|
||||
<h4 class="fl new_roadmap_listtitle"><a href="javascript:void(0);" class="">Version3.5 </a></h4><span class="fl roadmap_greenicon mt3 ml5"></span>
|
||||
<a href="javascript:void(0);" class="btn_newpro_grey fr " alt="导出">导出</a>
|
||||
<a href="javascript:void(0);" class="roadmap_icons_del fr mt5 mr5" alt="删除"></a>
|
||||
<a href="javascript:void(0);" class="roadmap_icons_edit fr mt5 " alt="编辑"></a>
|
||||
</div>
|
||||
<ul class="new_roadmap_list_txt clear mb5">
|
||||
<li>完成 <span class="ml5 c_green">100% </span></li>
|
||||
<li>issues<span class="ml5 ">20 </span></li>
|
||||
<li>已关闭<span class="ml5 ">6 </span></li>
|
||||
<li><span class="muban-icons-clock "></span ><span class="c_red">延期 6 天(2016-10-31)</span></li>
|
||||
</ul>
|
||||
<div class="c_grey">
|
||||
<p>里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息。</p>
|
||||
</div>
|
||||
<div id="version_list">
|
||||
<%= render :partial => "versions/list" %>
|
||||
</div>
|
||||
<div class="clear new_roadmap_listbox">
|
||||
<div class="clear">
|
||||
<h4 class="fl new_roadmap_listtitle"><a href="javascript:void(0);" class="">Version3.5 </a></h4><span class="fl roadmap_greyicon mt3 ml5"></span>
|
||||
<a href="javascript:void(0);" class="btn_newpro_grey fr " alt="导出">导出</a>
|
||||
<a href="javascript:void(0);" class="roadmap_icons_del fr mt5 mr5" alt="删除"></a>
|
||||
<a href="javascript:void(0);" class="roadmap_icons_edit fr mt5 " alt="编辑"></a>
|
||||
</div>
|
||||
<ul class="new_roadmap_list_txt clear mb5">
|
||||
<li>完成 <span class="ml5 c_red">30% </span></li>
|
||||
<li>issues<span class="ml5 ">20 </span></li>
|
||||
<li>已关闭<span class="ml5 ">6 </span></li>
|
||||
<li><span class="muban-icons-clock "></span>截止日期剩余 5天(2016-10-31)</li>
|
||||
</ul>
|
||||
<div class="c_grey">
|
||||
<p>里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息。</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear new_roadmap_listbox">
|
||||
<div class="clear">
|
||||
<h4 class="fl new_roadmap_listtitle"><a href="javascript:void(0);" class="">Version3.5 </a></h4><span class="fl roadmap_blueicon mt3 ml5"></span>
|
||||
<a href="javascript:void(0);" class="btn_newpro_grey fr " alt="导出">导出</a>
|
||||
<a href="javascript:void(0);" class="roadmap_icons_del fr mt5 mr5" alt="删除"></a>
|
||||
<a href="javascript:void(0);" class="roadmap_icons_edit fr mt5 " alt="编辑"></a>
|
||||
|
||||
</div>
|
||||
<ul class="new_roadmap_list_txt clear mb5">
|
||||
<li>完成 <span class="ml5 c_red">30% </span></li>
|
||||
<li>issues<span class="ml5 ">20 </span></li>
|
||||
<li>已关闭<span class="ml5 ">6 </span></li>
|
||||
<li><span class="muban-icons-clock "></span>截止日期剩余 5天(2016-10-31)</li>
|
||||
</ul>
|
||||
<div class="c_grey">
|
||||
<p>里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息。</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear new_roadmap_listbox">
|
||||
<div class="clear">
|
||||
<h4 class="fl new_roadmap_listtitle"><a href="javascript:void(0);" class="">Version3.5 </a></h4><span class="fl roadmap_greenicon mt3 ml5"></span>
|
||||
<a href="javascript:void(0);" class="btn_newpro_grey fr " alt="导出">导出</a>
|
||||
<a href="javascript:void(0);" class="roadmap_icons_del fr mt5 mr5" alt="删除"></a>
|
||||
<a href="javascript:void(0);" class="roadmap_icons_edit fr mt5 " alt="编辑"></a>
|
||||
</div>
|
||||
<ul class="new_roadmap_list_txt clear mb5">
|
||||
<li>完成 <span class="ml5 c_green">100% </span></li>
|
||||
<li>issues<span class="ml5 ">20 </span></li>
|
||||
<li>已关闭<span class="ml5 ">6 </span></li>
|
||||
<li><span class="muban-icons-clock "></span ><span class="c_red">延期 6 天(2016-10-31)</span></li>
|
||||
</ul>
|
||||
<div class="c_grey">
|
||||
<p>里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息。</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear new_roadmap_listbox">
|
||||
<div class="clear">
|
||||
<h4 class="fl new_roadmap_listtitle"><a href="javascript:void(0);" class="">Version3.5 </a></h4><span class="fl roadmap_greyicon mt3 ml5"></span>
|
||||
<a href="javascript:void(0);" class="btn_newpro_grey fr " alt="导出">导出</a>
|
||||
<a href="javascript:void(0);" class="roadmap_icons_del fr mt5 mr5" alt="删除"></a>
|
||||
<a href="javascript:void(0);" class="roadmap_icons_edit fr mt5 " alt="编辑"></a>
|
||||
</div>
|
||||
<ul class="new_roadmap_list_txt clear mb5">
|
||||
<li>完成 <span class="ml5 c_red">30% </span></li>
|
||||
<li>issues<span class="ml5 ">20 </span></li>
|
||||
<li>已关闭<span class="ml5 ">6 </span></li>
|
||||
<li><span class="muban-icons-clock "></span>截止日期剩余 5天(2016-10-31)</li>
|
||||
</ul>
|
||||
<div class="c_grey">
|
||||
<p>里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息。</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear new_roadmap_listbox">
|
||||
<div class="clear">
|
||||
<h4 class="fl new_roadmap_listtitle"><a href="javascript:void(0);" class="">Version3.5 </a></h4><span class="fl roadmap_blueicon mt3 ml5"></span>
|
||||
<a href="javascript:void(0);" class="btn_newpro_grey fr " alt="导出">导出</a>
|
||||
<a href="javascript:void(0);" class="roadmap_icons_del fr mt5 mr5" alt="删除"></a>
|
||||
<a href="javascript:void(0);" class="roadmap_icons_edit fr mt5 " alt="编辑"></a>
|
||||
|
||||
</div>
|
||||
<ul class="new_roadmap_list_txt clear mb5">
|
||||
<li>完成 <span class="ml5 c_red">30% </span></li>
|
||||
<li>issues<span class="ml5 ">20 </span></li>
|
||||
<li>已关闭<span class="ml5 ">6 </span></li>
|
||||
<li><span class="muban-icons-clock "></span>截止日期剩余 5天(2016-10-31)</li>
|
||||
</ul>
|
||||
<div class="c_grey">
|
||||
<p>里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息。</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear new_roadmap_listbox">
|
||||
<div class="clear">
|
||||
<h4 class="fl new_roadmap_listtitle"><a href="javascript:void(0);" class="">Version3.5 </a></h4><span class="fl roadmap_greenicon mt3 ml5"></span>
|
||||
<a href="javascript:void(0);" class="btn_newpro_grey fr " alt="导出">导出</a>
|
||||
<a href="javascript:void(0);" class="roadmap_icons_del fr mt5 mr5" alt="删除"></a>
|
||||
<a href="javascript:void(0);" class="roadmap_icons_edit fr mt5 " alt="编辑"></a>
|
||||
</div>
|
||||
<ul class="new_roadmap_list_txt clear mb5">
|
||||
<li>完成 <span class="ml5 c_green">100% </span></li>
|
||||
<li>issues<span class="ml5 ">20 </span></li>
|
||||
<li>已关闭<span class="ml5 ">6 </span></li>
|
||||
<li><span class="muban-icons-clock "></span ><span class="c_red">延期 6 天(2016-10-31)</span></li>
|
||||
</ul>
|
||||
<div class="c_grey">
|
||||
<p>里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息。</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear new_roadmap_listbox">
|
||||
<div class="clear">
|
||||
<h4 class="fl new_roadmap_listtitle"><a href="javascript:void(0);" class="">Version3.5 </a></h4><span class="fl roadmap_greyicon mt3 ml5"></span>
|
||||
<a href="javascript:void(0);" class="btn_newpro_grey fr " alt="导出">导出</a>
|
||||
<a href="javascript:void(0);" class="roadmap_icons_del fr mt5 mr5" alt="删除"></a>
|
||||
<a href="javascript:void(0);" class="roadmap_icons_edit fr mt5 " alt="编辑"></a>
|
||||
</div>
|
||||
<ul class="new_roadmap_list_txt clear mb5">
|
||||
<li>完成 <span class="ml5 c_red">30% </span></li>
|
||||
<li>issues<span class="ml5 ">20 </span></li>
|
||||
<li>已关闭<span class="ml5 ">6 </span></li>
|
||||
<li><span class="muban-icons-clock "></span>截止日期剩余 5天(2016-10-31)</li>
|
||||
</ul>
|
||||
<div class="c_grey">
|
||||
<p>里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息。</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear new_roadmap_listbox">
|
||||
<div class="clear">
|
||||
<h4 class="fl new_roadmap_listtitle"><a href="javascript:void(0);" class="">Version3.5 </a></h4><span class="fl roadmap_greyicon mt3 ml5"></span>
|
||||
<a href="javascript:void(0);" class="btn_newpro_grey fr " alt="导出">导出</a>
|
||||
<a href="javascript:void(0);" class="roadmap_icons_del fr mt5 mr5" alt="删除"></a>
|
||||
<a href="javascript:void(0);" class="roadmap_icons_edit fr mt5 " alt="编辑"></a>
|
||||
</div>
|
||||
<ul class="new_roadmap_list_txt clear mb5">
|
||||
<li>完成 <span class="ml5 c_red">30% </span></li>
|
||||
<li>issues<span class="ml5 ">20 </span></li>
|
||||
<li>已关闭<span class="ml5 ">6 </span></li>
|
||||
<li><span class="muban-icons-clock "></span>截止日期剩余 5天(2016-10-31)</li>
|
||||
</ul>
|
||||
<div class="c_grey">
|
||||
<p>里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息里程碑的首页以列表形式显示,不显示具体issue,只显示个数,完成度等重要信息。</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class=" pages ">
|
||||
<a href="javascript:void(0);" class="pages-big" >上一页</a>
|
||||
<a href="javascript:void(0);" class="active " >1</a>
|
||||
<a href="javascript:void(0);" >2</a>
|
||||
<a href="javascript:void(0);" >3</a>
|
||||
<a href="javascript:void(0);" >...</a>
|
||||
<a href="javascript:void(0);" >31</a>
|
||||
<a href="javascript:void(0);" class="pages-big" >下一页</a>
|
||||
<div class="cl"></div>
|
||||
</div><!--翻页 end-->
|
||||
<div class="cl"></div>
|
||||
|
||||
</div><!--new_roadmap_content_1 end-->
|
||||
<div id="new_roadmap_content_2" class="undis">
|
||||
ddd
|
||||
</div><!--new_roadmap_content_2 end-->
|
||||
<div id="new_roadmap_content_3" class="undis">
|
||||
eee
|
||||
</div><!--new_roadmap_content_3 end-->
|
||||
<div id="new_roadmap_content_4" class="undis">
|
||||
fff
|
||||
</div><!--new_roadmap_content_4 end-->
|
||||
</div><!--new_roadmap end-->
|
||||
<!--里程碑列表结束-->
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="project_r_h" style="width:730px;">
|
||||
<h2 class="project_h2"><%= l(:label_roadmap) %></h2>
|
||||
</div>
|
||||
<div class="roadmap">
|
||||
<fieldset id="filters" class="collapsible collapsed" >
|
||||
<legend><%= l(:label_version_display_settings)%></legend>
|
||||
<%= form_tag({}, :method => :get) do %>
|
||||
<% @trackers.each do |tracker| %>
|
||||
<label><%= check_box_tag "tracker_ids[]", tracker.id, (@selected_tracker_ids.include? tracker.id.to_s), :id => nil %>
|
||||
<%=h tracker.name %></label>
|
||||
<% end %>
|
||||
<!--label for="completed"><%#= check_box_tag "completed", 1, params[:completed] %> <%#= l(:label_show_completed_versions) %></label-->
|
||||
<% if @project.descendants.active.any? %>
|
||||
<%= hidden_field_tag 'with_subprojects', 0 %>
|
||||
<label><%= check_box_tag 'with_subprojects', 1, @with_subprojects %> <%=l(:label_subproject_plural)%></label>
|
||||
<% end %>
|
||||
<%= submit_tag l(:button_apply), :class => 'sub_btn ml10', :name => nil %>
|
||||
<%= link_to l(:label_version_new), new_project_version_path(@project), :class => 'green_u_btn fr' if User.current.allowed_to?(:manage_versions, @project) %>
|
||||
<% end %>
|
||||
</fieldset>
|
||||
|
||||
<% if @versions.empty? %>
|
||||
<p class="nodata mt10"><%= l(:label_no_data) %></p>
|
||||
<% else %>
|
||||
<% @versions.each do |version| %>
|
||||
|
||||
<div class="roadmap_box" style="width:710px;">
|
||||
<p><a class=" f16 fb c_dblue ">
|
||||
<a class=" f16 fb c_dblue " ><%= version_anchor(version)%></a>
|
||||
<%#= link_to_version_show version, :name => version_anchor(version) %>
|
||||
<% if version.completed? %>
|
||||
<span style="color: #E8770D;float:right;"><%= format_date(version.effective_date) %></span>
|
||||
<% elsif version.effective_date %>
|
||||
<span style="color: #E8770D;float:right;"><strong><%= due_date_distance_in_words(version.effective_date) %></strong> (<%= format_date(version.effective_date) %>)</span>
|
||||
<% end %>
|
||||
</a>
|
||||
</p>
|
||||
<div class="roadmap_pro mb10">
|
||||
<%= render :partial => 'versions/overview', :locals => {:version => version} %>
|
||||
<%#= render(:partial => "wiki/content", :locals => {:content => version.wiki_page.content}) if version.wiki_page %>
|
||||
|
||||
</div><!--roadmap_pro end-->
|
||||
<% if (issues = @issues_by_version[version]) && issues.size > 0 %>
|
||||
<div class="roadmap_list">
|
||||
<%= form_tag({}) do -%>
|
||||
<p class="f14 mb5">»<%= l(:label_related_issues) %></p>
|
||||
<ul class="roadmap_list_ul">
|
||||
<% issues.each do |issue| -%>
|
||||
<li style="overflow:hidden">
|
||||
<%= link_to_issue_version(issue, :project => (@project != issue.project)) %>
|
||||
<span class="mr5 fr" >指派给:<%= link_to "#{User.find(issue.try(:assigned_to_id)).show_name}", user_path(issue.try(:assigned_to_id)), :class => "c_blue hidden fr", :style => "width:50px;" %></span>
|
||||
</li>
|
||||
<% end -%>
|
||||
</ul>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %><!--roadmap_list end-->
|
||||
<div class="roadmap_list">
|
||||
<p class="f14 mb5">»<%= l(:label_versions_description)%></p>
|
||||
<p><%=h version.description %></p>
|
||||
<!--p class="f14 mb5">»<%#= link_to "导出:Excel", version_path(version, :format => 'xls') %></p-->
|
||||
</div><!--roadmap_list end-->
|
||||
</div><!--roadmap_box end-->
|
||||
<% end %>
|
||||
<ul class="wlist" >
|
||||
<%= pagination_links_full @versions_pages%>
|
||||
</ul>
|
||||
<div class="cl"></div>
|
||||
<% end %>
|
||||
</div><!--roadmap end-->
|
||||
|
||||
<% html_title(l(:label_roadmap)) %>
|
||||
|
||||
<%= context_menu issues_context_menu_path %>
|
||||
|
||||
<script type="text/javascript" language="javascript">
|
||||
$(".new_roadmap_nav li").click(function(){
|
||||
$(".new_roadmap_nav li").removeClass("new_roadmap_nav_hover");
|
||||
$(this).addClass("new_roadmap_nav_hover");
|
||||
});
|
||||
</script>
|
|
@ -0,0 +1,2 @@
|
|||
$("#version_list").html('<%= escape_javascript(render :partial => 'list') %>');
|
||||
$("#pages").html('<%= pagination_links_full @version_pages, @versions_count, :per_page_links => false, :remote => @is_remote, :flag => true, :is_new => true %>');
|
Loading…
Reference in New Issue