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