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