Adds a branch for unlimited project hierarchy.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/work@2148 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
<%= error_messages_for 'version' %>
|
||||
|
||||
<div class="box">
|
||||
<p><%= f.text_field :name, :size => 60, :required => true %></p>
|
||||
<p><%= f.text_field :description, :size => 60 %></p>
|
||||
<p><%= f.text_field :wiki_page_title, :label => :label_wiki_page, :size => 60, :disabled => @project.wiki.nil? %></p>
|
||||
<p><%= f.text_field :effective_date, :size => 10 %><%= calendar_for('version_effective_date') %></p>
|
||||
</div>
|
||||
@@ -0,0 +1,35 @@
|
||||
<form id="status_by_form">
|
||||
<fieldset>
|
||||
<legend>
|
||||
<%= l(:label_issues_by,
|
||||
select_tag('status_by',
|
||||
status_by_options_for_select(criteria),
|
||||
:id => 'status_by_select',
|
||||
:onchange => remote_function(:url => { :action => :status_by, :id => version },
|
||||
:with => "Form.serialize('status_by_form')"))) %>
|
||||
</legend>
|
||||
<% if counts.empty? %>
|
||||
<p><em><%= l(:label_no_data) %></em></p>
|
||||
<% else %>
|
||||
<table>
|
||||
<% counts.each do |count| %>
|
||||
<tr>
|
||||
<td width="130px" align="right" >
|
||||
<%= link_to count[:group], {:controller => 'issues',
|
||||
:action => 'index',
|
||||
:project_id => version.project,
|
||||
:set_filter => 1,
|
||||
:fixed_version_id => version,
|
||||
"#{criteria}_id" => count[:group]} %>
|
||||
</td>
|
||||
<td width="240px">
|
||||
<%= progress_bar((count[:closed].to_f / count[:total])*100,
|
||||
:legend => "#{count[:closed]}/#{count[:total]}",
|
||||
:width => "#{(count[:total].to_f / max * 200).floor}px;") %>
|
||||
</td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
<% end %>
|
||||
</fieldset>
|
||||
</form>
|
||||
@@ -0,0 +1,22 @@
|
||||
<% if version.completed? %>
|
||||
<p><%= format_date(version.effective_date) %></p>
|
||||
<% elsif version.effective_date %>
|
||||
<p><strong><%= due_date_distance_in_words(version.effective_date) %></strong> (<%= format_date(version.effective_date) %>)</p>
|
||||
<% end %>
|
||||
|
||||
<p><%=h version.description %></p>
|
||||
|
||||
<% if version.fixed_issues.count > 0 %>
|
||||
<%= progress_bar([version.closed_pourcent, version.completed_pourcent], :width => '40em', :legend => ('%0.0f%' % version.completed_pourcent)) %>
|
||||
<p class="progress-info">
|
||||
<%= link_to(version.closed_issues_count, :controller => 'issues', :action => 'index', :project_id => version.project, :status_id => 'c', :fixed_version_id => version, :set_filter => 1) %>
|
||||
<%= lwr(:label_closed_issues, version.closed_issues_count) %>
|
||||
(<%= '%0.0f' % (version.closed_issues_count.to_f / version.fixed_issues.count * 100) %>%)
|
||||
 
|
||||
<%= link_to(version.open_issues_count, :controller => 'issues', :action => 'index', :project_id => version.project, :status_id => 'o', :fixed_version_id => version, :set_filter => 1) %>
|
||||
<%= lwr(:label_open_issues, version.open_issues_count)%>
|
||||
(<%= '%0.0f' % (version.open_issues_count.to_f / version.fixed_issues.count * 100) %>%)
|
||||
</p>
|
||||
<% else %>
|
||||
<p><em><%= l(:label_roadmap_no_issues) %></em></p>
|
||||
<% end %>
|
||||
@@ -0,0 +1,7 @@
|
||||
<h2><%=l(:label_version)%></h2>
|
||||
|
||||
<% labelled_tabular_form_for :version, @version, :url => { :action => 'edit' } do |f| %>
|
||||
<%= render :partial => 'form', :locals => { :f => f } %>
|
||||
<%= submit_tag l(:button_save) %>
|
||||
<% end %>
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
<div class="contextual">
|
||||
<%= link_to_if_authorized l(:button_edit), {:controller => 'versions', :action => 'edit', :id => @version}, :class => 'icon icon-edit' %>
|
||||
</div>
|
||||
|
||||
<h2><%= h(@version.name) %></h2>
|
||||
|
||||
<div id="version-summary">
|
||||
<% if @version.estimated_hours > 0 || User.current.allowed_to?(:view_time_entries, @project) %>
|
||||
<fieldset><legend><%= l(:label_time_tracking) %></legend>
|
||||
<table>
|
||||
<tr>
|
||||
<td width="130px" align="right"><%= l(:field_estimated_hours) %></td>
|
||||
<td width="240px" class="total-hours"width="130px" align="right"><%= html_hours(lwr(:label_f_hour, @version.estimated_hours)) %></td>
|
||||
</tr>
|
||||
<% if User.current.allowed_to?(:view_time_entries, @project) %>
|
||||
<tr>
|
||||
<td width="130px" align="right"><%= l(:label_spent_time) %></td>
|
||||
<td width="240px" class="total-hours"><%= html_hours(lwr(:label_f_hour, @version.spent_hours)) %></td>
|
||||
</tr>
|
||||
<% end %>
|
||||
</table>
|
||||
</fieldset>
|
||||
<% end %>
|
||||
|
||||
<div id="status_by">
|
||||
<%= render_issue_status_by(@version, params[:status_by]) if @version.fixed_issues.count > 0 %>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="roadmap">
|
||||
<%= render :partial => 'versions/overview', :locals => {:version => @version} %>
|
||||
<%= render(:partial => "wiki/content", :locals => {:content => @version.wiki_page.content}) if @version.wiki_page %>
|
||||
|
||||
<% issues = @version.fixed_issues.find(:all,
|
||||
:include => [:status, :tracker],
|
||||
:order => "#{Tracker.table_name}.position, #{Issue.table_name}.id") %>
|
||||
<% if issues.size > 0 %>
|
||||
<fieldset class="related-issues"><legend><%= l(:label_related_issues) %></legend>
|
||||
<ul>
|
||||
<% issues.each do |issue| -%>
|
||||
<li><%= link_to_issue(issue) %>: <%=h issue.subject %></li>
|
||||
<% end -%>
|
||||
</ul>
|
||||
</fieldset>
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<%= call_hook :view_versions_show_bottom, :version => @version %>
|
||||
|
||||
<% html_title @version.name %>
|
||||
Reference in New Issue
Block a user