Versions can now be created with no date.
Versions with no date appear at the end of the roadmap, sorted by name. git-svn-id: http://redmine.rubyforge.org/svn/trunk@536 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -11,17 +11,26 @@
|
||||
<% end %>
|
||||
</div>
|
||||
|
||||
<% if @fixed_issues.empty? %><p><i><%= l(:label_no_data) %></i></p><% end %>
|
||||
<% if @versions.empty? %><p><i><%= l(:label_no_data) %></i></p><% end %>
|
||||
|
||||
<% ver_id = nil
|
||||
@fixed_issues.each do |issue| %>
|
||||
<% unless ver_id == issue.fixed_version_id %>
|
||||
<% if ver_id %></ul><% end %>
|
||||
<h3 class="icon22 icon22-package"><%= issue.fixed_version.name %></h3>
|
||||
<p><%= format_date(issue.fixed_version.effective_date) %><br />
|
||||
<%=h issue.fixed_version.description %></p>
|
||||
<% @versions.each do |version| %>
|
||||
<a name="<%= version.name %>"><h3 class="icon22 icon22-package"><%= version.name %></h3></a>
|
||||
<% if version.completed? %>
|
||||
<p><%= format_date(version.effective_date) %></p>
|
||||
<% elsif version.effective_date %>
|
||||
<p><strong><%=l(:label_roadmap_due_in)%> <%= distance_of_time_in_words Time.now, version.effective_date %> (<%= format_date(version.effective_date) %>)</strong></p>
|
||||
<% end %>
|
||||
<p><%=h version.description %></p>
|
||||
<% issues = version.fixed_issues.find(:all,
|
||||
:include => [:status, :tracker],
|
||||
:conditions => ["#{IssueStatus.table_name}.is_closed=? AND #{Issue.table_name}.tracker_id in (#{@selected_tracker_ids.join(',')})", true],
|
||||
:order => "#{Tracker.table_name}.position")
|
||||
%>
|
||||
<% if !issues.empty? %>
|
||||
<ul>
|
||||
<% ver_id = issue.fixed_version_id
|
||||
end %>
|
||||
<li><%= link_to_issue issue %>: <%=h issue.subject %></li>
|
||||
<% issues.each do |issue| %>
|
||||
<li><%= link_to_issue(issue) %>: <%=h issue.subject %></li>
|
||||
<% end %>
|
||||
</ul>
|
||||
<% end %>
|
||||
<% end %>
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
<a name="<%= version.name %>"><h3 class="icon22 icon22-package"><%= version.name %></h3></a>
|
||||
<% if version.completed? %>
|
||||
<p><%= format_date(version.effective_date) %></p>
|
||||
<% else %>
|
||||
<% elsif version.effective_date %>
|
||||
<p><strong><%=l(:label_roadmap_due_in)%> <%= distance_of_time_in_words Time.now, version.effective_date %> (<%= format_date(version.effective_date) %>)</strong></p>
|
||||
<% end %>
|
||||
<p><%=h version.description %></p>
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
<table class="list">
|
||||
<thead><th><%= l(:label_version) %></th><th><%= l(:field_effective_date) %></th><th><%= l(:field_description) %></th><th style="width:15%"></th><th style="width:15%"></th></thead>
|
||||
<tbody>
|
||||
<% for version in @project.versions %>
|
||||
<% for version in @project.versions.sort %>
|
||||
<tr class="<%= cycle 'odd', 'even' %>">
|
||||
<td><%=h version.name %></td>
|
||||
<td align="center"><%= format_date(version.effective_date) %></td>
|
||||
|
||||
Reference in New Issue
Block a user