@@ -1,77 +1,77 | |||||
1 | <div class="contextual"> |
|
1 | <div class="contextual"> | |
2 | <%= link_to(l(:label_version_new), new_project_version_path(@project), |
|
2 | <%= link_to(l(:label_version_new), new_project_version_path(@project), | |
3 | :class => 'icon icon-add') if User.current.allowed_to?(:manage_versions, @project) %> |
|
3 | :class => 'icon icon-add') if User.current.allowed_to?(:manage_versions, @project) %> | |
4 | </div> |
|
4 | </div> | |
5 |
|
5 | |||
6 | <h2><%=l(:label_roadmap)%></h2> |
|
6 | <h2><%=l(:label_roadmap)%></h2> | |
7 |
|
7 | |||
8 | <% if @versions.empty? %> |
|
8 | <% if @versions.empty? %> | |
9 | <p class="nodata"><%= l(:label_no_data) %></p> |
|
9 | <p class="nodata"><%= l(:label_no_data) %></p> | |
10 | <% else %> |
|
10 | <% else %> | |
11 | <div id="roadmap"> |
|
11 | <div id="roadmap"> | |
12 | <% @versions.each do |version| %> |
|
12 | <% @versions.each do |version| %> | |
13 | <h3 class="version"><%= link_to_version version, :name => version_anchor(version) %></h3> |
|
13 | <h3 class="version"><%= link_to_version version, :name => version_anchor(version) %></h3> | |
14 | <%= render :partial => 'versions/overview', :locals => {:version => version} %> |
|
14 | <%= render :partial => 'versions/overview', :locals => {:version => version} %> | |
15 | <%= render(:partial => "wiki/content", |
|
15 | <%= render(:partial => "wiki/content", | |
16 | :locals => {:content => version.wiki_page.content}) if version.wiki_page %> |
|
16 | :locals => {:content => version.wiki_page.content}) if version.wiki_page %> | |
17 | <% if (issues = @issues_by_version[version]) && issues.size > 0 %> |
|
17 | <% if (issues = @issues_by_version[version]) && issues.size > 0 %> | |
18 | <%= form_tag({}) do -%> |
|
18 | <%= form_tag({}) do -%> | |
19 | <table class="list related-issues"> |
|
19 | <table class="list related-issues"> | |
20 | <caption><%= l(:label_related_issues) %></caption> |
|
20 | <caption><%= l(:label_related_issues) %></caption> | |
21 | <% issues.each do |issue| -%> |
|
21 | <% issues.each do |issue| -%> | |
22 | <tr class="hascontextmenu"> |
|
22 | <tr class="hascontextmenu"> | |
23 | <td class="checkbox"><%= check_box_tag 'ids[]', issue.id, false, :id => nil %></td> |
|
23 | <td class="checkbox"><%= check_box_tag 'ids[]', issue.id, false, :id => nil %></td> | |
24 | <td><%= link_to_issue(issue, :project => (@project != issue.project)) %></td> |
|
24 | <td><%= link_to_issue(issue, :project => (@project != issue.project)) %></td> | |
25 | </tr> |
|
25 | </tr> | |
26 | <% end -%> |
|
26 | <% end -%> | |
27 | </table> |
|
27 | </table> | |
28 | <% end %> |
|
28 | <% end %> | |
29 | <% end %> |
|
29 | <% end %> | |
30 | <%= call_hook :view_projects_roadmap_version_bottom, :version => version %> |
|
30 | <%= call_hook :view_projects_roadmap_version_bottom, :version => version %> | |
31 | <% end %> |
|
31 | <% end %> | |
32 | </div> |
|
32 | </div> | |
33 | <% end %> |
|
33 | <% end %> | |
34 |
|
34 | |||
35 | <% content_for :sidebar do %> |
|
35 | <% content_for :sidebar do %> | |
36 | <%= form_tag({}, :method => :get) do %> |
|
36 | <%= form_tag({}, :method => :get) do %> | |
37 | <h3><%= l(:label_roadmap) %></h3> |
|
37 | <h3><%= l(:label_roadmap) %></h3> | |
38 | <ul> |
|
38 | <ul> | |
39 | <% @trackers.each do |tracker| %> |
|
39 | <% @trackers.each do |tracker| %> | |
40 | <li> |
|
40 | <li> | |
41 | <label> |
|
41 | <label> | |
42 | <%= check_box_tag("tracker_ids[]", tracker.id, |
|
42 | <%= check_box_tag("tracker_ids[]", tracker.id, | |
43 | (@selected_tracker_ids.include? tracker.id.to_s), |
|
43 | (@selected_tracker_ids.include? tracker.id.to_s), | |
44 | :id => nil) %> |
|
44 | :id => nil) %> | |
45 |
<%= |
|
45 | <%= tracker.name %> | |
46 | </label> |
|
46 | </label> | |
47 | </li> |
|
47 | </li> | |
48 | <% end %> |
|
48 | <% end %> | |
49 | </ul> |
|
49 | </ul> | |
50 | <p></p> |
|
50 | <p></p> | |
51 | <label for="completed"><%= check_box_tag "completed", 1, params[:completed] %> <%= l(:label_show_completed_versions) %></label> |
|
51 | <label for="completed"><%= check_box_tag "completed", 1, params[:completed] %> <%= l(:label_show_completed_versions) %></label> | |
52 | <% if @project.descendants.active.any? %> |
|
52 | <% if @project.descendants.active.any? %> | |
53 | <%= hidden_field_tag 'with_subprojects', 0 %> |
|
53 | <%= hidden_field_tag 'with_subprojects', 0 %> | |
54 | <br /><label><%= check_box_tag 'with_subprojects', 1, @with_subprojects %> <%=l(:label_subproject_plural)%></label> |
|
54 | <br /><label><%= check_box_tag 'with_subprojects', 1, @with_subprojects %> <%=l(:label_subproject_plural)%></label> | |
55 | <% end %> |
|
55 | <% end %> | |
56 | <p><%= submit_tag l(:button_apply), :class => 'button-small', :name => nil %></p> |
|
56 | <p><%= submit_tag l(:button_apply), :class => 'button-small', :name => nil %></p> | |
57 | <% end %> |
|
57 | <% end %> | |
58 |
|
58 | |||
59 | <h3><%= l(:label_version_plural) %></h3> |
|
59 | <h3><%= l(:label_version_plural) %></h3> | |
60 | <% @versions.each do |version| %> |
|
60 | <% @versions.each do |version| %> | |
61 | <%= link_to format_version_name(version), "##{version_anchor(version)}" %><br /> |
|
61 | <%= link_to format_version_name(version), "##{version_anchor(version)}" %><br /> | |
62 | <% end %> |
|
62 | <% end %> | |
63 | <% if @completed_versions.present? %> |
|
63 | <% if @completed_versions.present? %> | |
64 | <p> |
|
64 | <p> | |
65 | <%= link_to_function l(:label_completed_versions), |
|
65 | <%= link_to_function l(:label_completed_versions), | |
66 | '$("#toggle-completed-versions").toggleClass("collapsed"); $("#completed-versions").toggle()', |
|
66 | '$("#toggle-completed-versions").toggleClass("collapsed"); $("#completed-versions").toggle()', | |
67 | :id => 'toggle-completed-versions', :class => 'collapsible collapsed' %><br /> |
|
67 | :id => 'toggle-completed-versions', :class => 'collapsible collapsed' %><br /> | |
68 | <span id="completed-versions" style="display:none;"> |
|
68 | <span id="completed-versions" style="display:none;"> | |
69 | <%= @completed_versions.map {|version| link_to format_version_name(version), version_path(version)}.join("<br />\n").html_safe %> |
|
69 | <%= @completed_versions.map {|version| link_to format_version_name(version), version_path(version)}.join("<br />\n").html_safe %> | |
70 | </span> |
|
70 | </span> | |
71 | </p> |
|
71 | </p> | |
72 | <% end %> |
|
72 | <% end %> | |
73 | <% end %> |
|
73 | <% end %> | |
74 |
|
74 | |||
75 | <% html_title(l(:label_roadmap)) %> |
|
75 | <% html_title(l(:label_roadmap)) %> | |
76 |
|
76 | |||
77 | <%= context_menu issues_context_menu_path %> |
|
77 | <%= context_menu issues_context_menu_path %> |
General Comments 0
You need to be logged in to leave comments.
Login now