2011-07-03 16:56:27 +04:00
|
|
|
<div class="contextual">
|
2013-05-03 13:52:58 +04:00
|
|
|
<%= link_to(l(:label_version_new), new_project_version_path(@project),
|
|
|
|
:class => 'icon icon-add') if User.current.allowed_to?(:manage_versions, @project) %>
|
2011-07-03 16:56:27 +04:00
|
|
|
</div>
|
|
|
|
|
2007-03-12 20:59:02 +03:00
|
|
|
<h2><%=l(:label_roadmap)%></h2>
|
|
|
|
|
2007-09-22 17:17:49 +04:00
|
|
|
<% if @versions.empty? %>
|
2013-05-03 13:52:58 +04:00
|
|
|
<p class="nodata"><%= l(:label_no_data) %></p>
|
2008-02-21 22:49:47 +03:00
|
|
|
<% else %>
|
2013-05-03 13:52:58 +04:00
|
|
|
<div id="roadmap">
|
|
|
|
<% @versions.each do |version| %>
|
2012-08-13 18:41:53 +04:00
|
|
|
<h3 class="version"><%= link_to_version version, :name => version_anchor(version) %></h3>
|
2007-12-07 13:26:07 +03:00
|
|
|
<%= render :partial => 'versions/overview', :locals => {:version => version} %>
|
2013-05-03 13:52:58 +04:00
|
|
|
<%= 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 %>
|
2013-05-03 13:52:58 +04:00
|
|
|
<%= form_tag({}) do -%>
|
|
|
|
<table class="list related-issues">
|
|
|
|
<caption><%= l(:label_related_issues) %></caption>
|
|
|
|
<% issues.each do |issue| -%>
|
|
|
|
<tr class="hascontextmenu">
|
|
|
|
<td class="checkbox"><%= check_box_tag 'ids[]', issue.id, false, :id => nil %></td>
|
2013-11-16 11:48:27 +04:00
|
|
|
<td class="subject"><%= link_to_issue(issue, :project => (@project != issue.project)) %></td>
|
2013-05-03 13:52:58 +04:00
|
|
|
</tr>
|
|
|
|
<% end -%>
|
|
|
|
</table>
|
|
|
|
<% end %>
|
2008-02-21 22:49:47 +03:00
|
|
|
<% end %>
|
2009-02-10 04:18:49 +03:00
|
|
|
<%= call_hook :view_projects_roadmap_version_bottom, :version => version %>
|
2013-05-03 13:52:58 +04:00
|
|
|
<% end %>
|
|
|
|
</div>
|
2007-03-12 20:59:02 +03:00
|
|
|
<% end %>
|
2007-09-22 17:17:49 +04:00
|
|
|
|
|
|
|
<% content_for :sidebar do %>
|
2012-04-25 21:17:49 +04:00
|
|
|
<%= form_tag({}, :method => :get) do %>
|
2007-09-22 17:17:49 +04:00
|
|
|
<h3><%= l(:label_roadmap) %></h3>
|
2013-05-03 13:53:09 +04:00
|
|
|
<ul>
|
2007-09-22 17:17:49 +04:00
|
|
|
<% @trackers.each do |tracker| %>
|
2013-05-03 13:53:09 +04:00
|
|
|
<li>
|
|
|
|
<label>
|
|
|
|
<%= check_box_tag("tracker_ids[]", tracker.id,
|
|
|
|
(@selected_tracker_ids.include? tracker.id.to_s),
|
|
|
|
:id => nil) %>
|
2013-05-03 13:53:19 +04:00
|
|
|
<%= tracker.name %>
|
2013-05-03 13:53:09 +04:00
|
|
|
</label>
|
|
|
|
</li>
|
2007-09-22 17:17:49 +04:00
|
|
|
<% end %>
|
2013-05-03 13:53:09 +04:00
|
|
|
</ul>
|
|
|
|
<p></p>
|
2013-05-03 15:39:23 +04:00
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<label for="completed">
|
|
|
|
<%= check_box_tag "completed", 1, params[:completed] %> <%= l(:label_show_completed_versions) %>
|
|
|
|
</label>
|
|
|
|
</li>
|
|
|
|
<% if @project.descendants.active.any? %>
|
|
|
|
<li>
|
|
|
|
<%= hidden_field_tag 'with_subprojects', 0 %>
|
|
|
|
<label>
|
|
|
|
<%= check_box_tag 'with_subprojects', 1, @with_subprojects %> <%=l(:label_subproject_plural)%>
|
|
|
|
</label>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
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>
|
2013-05-03 13:53:29 +04:00
|
|
|
<ul>
|
2007-09-22 17:17:49 +04:00
|
|
|
<% @versions.each do |version| %>
|
2013-05-03 13:53:29 +04:00
|
|
|
<li>
|
|
|
|
<%= link_to(format_version_name(version), "##{version_anchor(version)}") %>
|
|
|
|
</li>
|
2007-09-22 17:17:49 +04:00
|
|
|
<% end %>
|
2013-05-03 13:53:29 +04:00
|
|
|
</ul>
|
2012-01-24 22:45:40 +04:00
|
|
|
<% if @completed_versions.present? %>
|
|
|
|
<p>
|
2013-03-15 18:15:46 +04:00
|
|
|
<%= link_to_function l(:label_completed_versions),
|
|
|
|
'$("#toggle-completed-versions").toggleClass("collapsed"); $("#completed-versions").toggle()',
|
2013-05-03 15:39:11 +04:00
|
|
|
:id => 'toggle-completed-versions', :class => 'collapsible collapsed' %>
|
|
|
|
<ul id = "completed-versions" style = "display:none;">
|
|
|
|
<% @completed_versions.each do |version| %>
|
|
|
|
<li><%= link_to(format_version_name(version), version_path(version)) %></li>
|
|
|
|
<% end %>
|
|
|
|
</ul>
|
2012-01-24 22:45:40 +04:00
|
|
|
</p>
|
|
|
|
<% end %>
|
2007-09-22 17:17:49 +04:00
|
|
|
<% end %>
|
2007-12-07 13:26:07 +03:00
|
|
|
|
2008-01-03 01:41:53 +03:00
|
|
|
<% html_title(l(:label_roadmap)) %>
|
2010-03-06 21:03:25 +03:00
|
|
|
|
2010-09-11 18:00:23 +04:00
|
|
|
<%= context_menu issues_context_menu_path %>
|