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| %>
|
2009-12-17 22:00:31 +03:00
|
|
|
<h3 class="version"><%= tag 'a', :name => version.name %><%= link_to_version version %></h3>
|
2007-12-07 13:26:07 +03:00
|
|
|
<%= render :partial => 'versions/overview', :locals => {:version => version} %>
|
|
|
|
<%= render(:partial => "wiki/content", :locals => {:content => version.wiki_page.content}) if version.wiki_page %>
|
|
|
|
|
2009-12-06 13:28:20 +03:00
|
|
|
<% if (issues = @issues_by_version[version]) && issues.size > 0 %>
|
2008-02-21 22:49:47 +03:00
|
|
|
<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| -%>
|
2009-12-12 18:33:31 +03:00
|
|
|
<li><%= link_to_issue(issue, :project => (@project != issue.project)) %></li>
|
2008-03-09 21:27:55 +03:00
|
|
|
<%- end -%>
|
2007-12-07 13:26:07 +03:00
|
|
|
</ul>
|
2008-02-21 22:49:47 +03:00
|
|
|
</fieldset>
|
|
|
|
<% end %>
|
2009-02-10 04:18:49 +03:00
|
|
|
<%= call_hook :view_projects_roadmap_version_bottom, :version => version %>
|
2008-02-21 22:49:47 +03:00
|
|
|
<% 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 %>
|
2009-12-12 18:33:31 +03:00
|
|
|
<%=h 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>
|
2009-12-06 13:28:20 +03:00
|
|
|
<% if @project.descendants.active.any? %>
|
|
|
|
<%= hidden_field_tag 'with_subprojects', 0 %>
|
|
|
|
<br /><label><%= check_box_tag 'with_subprojects', 1, @with_subprojects %> <%=l(:label_subproject_plural)%></label>
|
|
|
|
<% end %>
|
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| %>
|
2009-12-06 13:28:20 +03:00
|
|
|
<%= link_to format_version_name(version), "##{version.name}" %><br />
|
2007-09-22 17:17:49 +04:00
|
|
|
<% end %>
|
|
|
|
<% end %>
|
2007-12-07 13:26:07 +03:00
|
|
|
|
2008-01-03 01:41:53 +03:00
|
|
|
<% html_title(l(:label_roadmap)) %>
|