2007-03-12 20:59:02 +03:00
|
|
|
<h2><%=l(:label_roadmap)%></h2>
|
|
|
|
|
2007-09-22 17:17:49 +04:00
|
|
|
<% if @versions.empty? %>
|
|
|
|
<p class="nodata"><%= l(:label_no_data) %></p>
|
2008-02-21 22:49:47 +03:00
|
|
|
<% else %>
|
|
|
|
<div id="roadmap">
|
2007-03-12 20:59:02 +03:00
|
|
|
<% @versions.each do |version| %>
|
2007-12-07 13:26:07 +03:00
|
|
|
<%= tag 'a', :name => version.name %>
|
|
|
|
<h3 class="icon22 icon22-package"><%= link_to h(version.name), :controller => 'versions', :action => 'show', :id => version %></h3>
|
|
|
|
<%= 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],
|
|
|
|
:conditions => ["tracker_id in (#{@selected_tracker_ids.join(',')})"],
|
2008-02-18 21:28:37 +03:00
|
|
|
:order => "#{Tracker.table_name}.position, #{Issue.table_name}.id") unless @selected_tracker_ids.empty?
|
2007-12-07 13:26:07 +03:00
|
|
|
issues ||= []
|
|
|
|
%>
|
2008-02-21 22:49:47 +03:00
|
|
|
<% if issues.size > 0 %>
|
|
|
|
<fieldset class="related-issues"><legend><%= l(:label_related_issues) %></legend>
|
2007-12-07 13:26:07 +03:00
|
|
|
<ul>
|
2008-03-09 21:27:55 +03:00
|
|
|
<%- issues.each do |issue| -%>
|
|
|
|
<li class="issue <%= 'closed' if issue.closed? %>"><%= link_to_issue(issue) %>: <%=h issue.subject %></li>
|
|
|
|
<%- end -%>
|
2007-12-07 13:26:07 +03:00
|
|
|
</ul>
|
2008-02-21 22:49:47 +03:00
|
|
|
</fieldset>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
|
|
|
</div>
|
2007-03-12 20:59:02 +03:00
|
|
|
<% end %>
|
2007-09-22 17:17:49 +04:00
|
|
|
|
|
|
|
<% content_for :sidebar do %>
|
2008-04-30 16:14:15 +04:00
|
|
|
<% form_tag({}, :method => :get) do %>
|
2007-09-22 17:17:49 +04:00
|
|
|
<h3><%= l(:label_roadmap) %></h3>
|
|
|
|
<% @trackers.each do |tracker| %>
|
2008-02-21 22:49:47 +03:00
|
|
|
<label><%= check_box_tag "tracker_ids[]", tracker.id, (@selected_tracker_ids.include? tracker.id.to_s), :id => nil %>
|
2007-10-01 19:22:03 +04:00
|
|
|
<%= tracker.name %></label><br />
|
2007-09-22 17:17:49 +04:00
|
|
|
<% end %>
|
|
|
|
<br />
|
2008-02-21 22:49:47 +03:00
|
|
|
<label for="completed"><%= check_box_tag "completed", 1, params[:completed] %> <%= l(:label_show_completed_versions) %></label>
|
2008-04-30 16:14:15 +04:00
|
|
|
<p><%= submit_tag l(:button_apply), :class => 'button-small', :name => nil %></p>
|
2007-09-22 17:17:49 +04:00
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<h3><%= l(:label_version_plural) %></h3>
|
|
|
|
<% @versions.each do |version| %>
|
|
|
|
<%= link_to version.name, :anchor => version.name %><br />
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
2007-12-07 13:26:07 +03:00
|
|
|
|
2008-01-03 01:41:53 +03:00
|
|
|
<% html_title(l(:label_roadmap)) %>
|