2013-08-01 10:33:49 +08:00
|
|
|
<% if version.issues_count > 0 %>
|
2016-10-21 14:22:14 +08:00
|
|
|
<li>已关闭 <span class="ml5 "><%=version.closed_issues_count%></span></li>
|
|
|
|
<li><span >/</span></li>
|
|
|
|
<li>issues<span class="ml5 "><%=version.issues_count%></span></li>
|
|
|
|
<li>
|
|
|
|
<%= progress_bar([version.closed_percent], :width => '300px;', :legend => ('%0.0f%' % version.completed_percent)) %>
|
|
|
|
<span class="ml5 c_red">
|
2016-10-21 16:16:26 +08:00
|
|
|
<%= version.closed_percent.round %>%
|
2016-10-21 14:22:14 +08:00
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
<%#= labelled_form_for @version,:html=>{:id=>"new_project_version_form"} do |f| %>
|
|
|
|
<%#= f.select :status, Version::VERSION_STATUSES.collect {|s| [l("version_status_#{s}"), s]}, :class=>"fr new_roadmap_select", :blur => "remote_function(#new_project_version_form);"%>
|
|
|
|
<%# end %>
|
2016-10-21 16:16:26 +08:00
|
|
|
<%= form_tag({:controller => 'versions', :action => 'update', :version => @version, :flag => 1},:remote => 'true', :method =>:put, :id=>"version-#{@version.id}-status-form", :class => 'fr new_roadmap_select') do %>
|
2016-10-21 14:22:14 +08:00
|
|
|
<%= select( :versions, :status, Version::VERSION_STATUSES.collect {|s| [l("version_status_#{s}"), s]},
|
|
|
|
{ :include_blank => false, :selected=> @version.status ? @version.status : 0},
|
2016-10-21 16:16:26 +08:00
|
|
|
{ :onchange =>"remote_function('#version-#{@version.id}-status-form');", :id =>"status", :name => "status",:class=>"fr new_roadmap_select"}) %>
|
2016-10-21 14:22:14 +08:00
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<%= delete_version_link version_path(@version, :back_url => url_for(:controller => 'versions',
|
|
|
|
:action => 'index',
|
|
|
|
:project_id => @version.project)),:class=>'roadmap_icons_del fr mt5 mr5' if User.current.allowed_to?(:manage_versions, @version.project) %>
|
2016-10-26 15:18:07 +08:00
|
|
|
<%#= link_to("", edit_version_path(@version), :class => 'roadmap_icons_edit fr mt5 ') if User.current.allowed_to?(:manage_versions, @version.project) %>
|
|
|
|
<%= link_to( "", edit_version_path(@version), :class => 'roadmap_icons_edit fr mt5', :remote => true) if User.current.allowed_to?(:manage_versions, @version.project) %>
|
2016-10-21 14:22:14 +08:00
|
|
|
<%= call_hook(:view_versions_show_contextual, { :version => @version, :project => @project }) %>
|
|
|
|
<% else %>
|
|
|
|
<div class="flash error"><%= l(:label_roadmap_no_issues) %></div>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<!--Modified by young-->
|
|
|
|
<%# if version.issues_count > 0 %>
|
|
|
|
<!-- <p class="f14 mb5">»<%#= l(:label_versions_progress)%></p>
|
|
|
|
<%#= progress_bar([version.closed_percent], :width => '648px;', :legend => ('%0.0f%' % version.completed_percent)) %>
|
2013-08-01 10:33:49 +08:00
|
|
|
<p class="progress-info">
|
2016-09-22 16:12:32 +08:00
|
|
|
<%#= link_to(l(:label_x_issues, :count => version.issues_count),
|
2015-04-16 03:54:07 +08:00
|
|
|
project_issues_path(version.project, :status_id => '*', :fixed_version_id => version, :set_filter => 1), :class =>"c_dblue",) %>
|
2016-10-21 14:22:14 +08:00
|
|
|
<a class="c_dblue" target="_blank"><%#=version.issues_count%> 问题</a>
|
2013-08-01 10:33:49 +08:00
|
|
|
|
2016-09-22 16:12:32 +08:00
|
|
|
(<%#= link_to_if(version.closed_issues_count > 0, l(:label_x_closed_issues_abbr, :count => version.closed_issues_count),
|
2015-04-16 03:54:07 +08:00
|
|
|
project_issues_path(version.project, :status_id => 'c', :fixed_version_id => version, :set_filter => 1), :class =>"c_dblue") %>
|
2016-10-21 14:22:14 +08:00
|
|
|
<%# if version.closed_issues_count > 0 %>
|
|
|
|
<a class="c_dblue" target="_blank"><%#end%><%#=version.closed_issues_count%> 已关闭</a>
|
2013-08-01 10:33:49 +08:00
|
|
|
—
|
2016-09-22 16:12:32 +08:00
|
|
|
<%#= link_to_if(version.open_issues_count > 0, l(:label_x_open_issues_abbr, :count => version.open_issues_count),
|
|
|
|
project_issues_path(version.project, :status_id => 'o', :fixed_version_id => version, :set_filter => 1), :class =>"c_dblue") %>
|
2016-10-21 14:22:14 +08:00
|
|
|
<%# if version.open_issues_count > 0%>
|
|
|
|
<a class="c_dblue" target="_blank"><%#end%><%#=version.open_issues_count%> 打开</a>
|
2016-09-22 16:12:32 +08:00
|
|
|
)
|
2013-08-01 10:33:49 +08:00
|
|
|
</p>
|
2016-10-21 14:22:14 +08:00
|
|
|
<%# else %>
|
|
|
|
<div class="flash error"><%#= l(:label_roadmap_no_issues) %></div>
|
|
|
|
<%# end %>-->
|
|
|
|
<script>
|
|
|
|
function remote_function(id) {
|
|
|
|
$(id).submit();
|
|
|
|
}
|
|
|
|
</script>
|