2016-10-26 18:39:14 +08:00
|
|
|
<li>已关闭 <span class="ml5 "><%= version.closed_issues_count%></span></li>
|
2016-10-21 14:22:14 +08:00
|
|
|
<li><span >/</span></li>
|
2016-10-26 18:39:14 +08:00
|
|
|
<li>issues<span class="ml5 "><%= version.issues_count%></span></li>
|
2016-10-21 14:22:14 +08:00
|
|
|
<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>
|
2016-10-26 18:39:14 +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 %>
|
|
|
|
<%= select( :versions, :status, Version::VERSION_STATUSES.collect {|s| [l("version_status_#{s}"), s]},
|
|
|
|
{ :include_blank => false, :selected=> @version.status ? @version.status : 0},
|
|
|
|
{ :onchange =>"remote_function('#version-#{@version.id}-status-form');", :id =>"status", :name => "status",:class=>"fr new_roadmap_select"}) %>
|
|
|
|
<% end %>
|
|
|
|
<%#= link_to "", {:controller => "versions", :action => "destroy", :project_id => @version.project_id}, :data => {:confirm => l(:text_are_you_sure_version)}, :class => "roadmap_icons_del fr mt5 mr5" if User.current.allowed_to?(:manage_versions, version.project) %>
|
2016-10-28 14:20:00 +08:00
|
|
|
<%= link_to "", version_path(version, :is_show => true), :method => "delete", :data => {:confirm => l(:text_are_you_sure_version)}, :onclick => "confirm_can_delte", :class => "roadmap_icons_del_show fr mt5 mr5" if User.current.allowed_to?(:manage_versions, version.project) %>
|
|
|
|
<%= link_to( "", edit_version_path(@version, :is_create => true), :class => 'roadmap_icons_edit_show fr mt5', :remote => true) if User.current.allowed_to?(:manage_versions, @version.project) %>
|
|
|
|
|
2016-10-27 17:30:22 +08:00
|
|
|
|
2016-10-21 14:22:14 +08:00
|
|
|
<%= call_hook(:view_versions_show_contextual, { :version => @version, :project => @project }) %>
|
|
|
|
|
2016-10-26 18:39:14 +08:00
|
|
|
|
2016-10-21 14:22:14 +08:00
|
|
|
<script>
|
|
|
|
function remote_function(id) {
|
|
|
|
$(id).submit();
|
|
|
|
}
|
|
|
|
</script>
|