2011-07-03 16:56:27 +04:00
|
|
|
<div class="contextual">
|
2011-11-26 18:55:24 +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? %>
|
|
|
|
<p class="nodata"><%= l(:label_no_data) %></p>
|
2008-02-21 22:49:47 +03:00
|
|
|
<% else %>
|
|
|
|
<div id="roadmap">
|
2011-08-02 16:35:15 +04:00
|
|
|
<% @versions.each do |version| %>
|
2011-08-02 17:22:34 +04:00
|
|
|
<h3 class="version"><%= tag 'a', :name => h(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 %>
|
2011-09-15 13:24:17 +04:00
|
|
|
<% form_tag({}) do -%>
|
2010-03-06 21:03:25 +03:00
|
|
|
<table class="list related-issues">
|
|
|
|
<caption><%= l(:label_related_issues) %></caption>
|
2011-07-04 23:40:54 +04:00
|
|
|
<% issues.each do |issue| -%>
|
2010-03-06 21:03:25 +03:00
|
|
|
<tr class="hascontextmenu">
|
|
|
|
<td class="checkbox"><%= check_box_tag 'ids[]', issue.id %></td>
|
|
|
|
<td><%= link_to_issue(issue, :project => (@project != issue.project)) %></td>
|
|
|
|
</tr>
|
2011-07-04 23:40:54 +04:00
|
|
|
<% end -%>
|
2010-03-06 21:03:25 +03:00
|
|
|
</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 %>
|
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? %>
|
2011-09-15 13:24:17 +04:00
|
|
|
<%= hidden_field_tag 'with_subprojects', 0 %>
|
2009-12-06 13:28:20 +03:00
|
|
|
<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)) %>
|
2010-03-06 21:03:25 +03:00
|
|
|
|
2010-09-11 18:00:23 +04:00
|
|
|
<%= context_menu issues_context_menu_path %>
|