@@ -1,34 +1,35 | |||
|
1 | 1 | <div class="contextual"> |
|
2 |
<%= link_to |
|
|
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 | 4 | </div> |
|
4 | 5 | |
|
5 | 6 | <h2><%=l(:label_roadmap)%></h2> |
|
6 | 7 | |
|
7 | 8 | <% if @versions.empty? %> |
|
8 | <p class="nodata"><%= l(:label_no_data) %></p> | |
|
9 | <p class="nodata"><%= l(:label_no_data) %></p> | |
|
9 | 10 | <% else %> |
|
10 | <div id="roadmap"> | |
|
11 | <% @versions.each do |version| %> | |
|
11 | <div id="roadmap"> | |
|
12 | <% @versions.each do |version| %> | |
|
12 | 13 | <h3 class="version"><%= link_to_version version, :name => version_anchor(version) %></h3> |
|
13 | 14 | <%= render :partial => 'versions/overview', :locals => {:version => version} %> |
|
14 | <%= render(:partial => "wiki/content", :locals => {:content => version.wiki_page.content}) if version.wiki_page %> | |
|
15 | ||
|
15 | <%= render(:partial => "wiki/content", | |
|
16 | :locals => {:content => version.wiki_page.content}) if version.wiki_page %> | |
|
16 | 17 | <% if (issues = @issues_by_version[version]) && issues.size > 0 %> |
|
17 | <%= form_tag({}) do -%> | |
|
18 | <table class="list related-issues"> | |
|
19 | <caption><%= l(:label_related_issues) %></caption> | |
|
20 | <% issues.each do |issue| -%> | |
|
21 | <tr class="hascontextmenu"> | |
|
22 | <td class="checkbox"><%= check_box_tag 'ids[]', issue.id, false, :id => nil %></td> | |
|
23 | <td><%= link_to_issue(issue, :project => (@project != issue.project)) %></td> | |
|
24 | </tr> | |
|
25 | <% end -%> | |
|
26 | </table> | |
|
27 | <% end %> | |
|
18 | <%= form_tag({}) do -%> | |
|
19 | <table class="list related-issues"> | |
|
20 | <caption><%= l(:label_related_issues) %></caption> | |
|
21 | <% issues.each do |issue| -%> | |
|
22 | <tr class="hascontextmenu"> | |
|
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> | |
|
25 | </tr> | |
|
26 | <% end -%> | |
|
27 | </table> | |
|
28 | <% end %> | |
|
28 | 29 | <% end %> |
|
29 | 30 | <%= call_hook :view_projects_roadmap_version_bottom, :version => version %> |
|
30 | <% end %> | |
|
31 | </div> | |
|
31 | <% end %> | |
|
32 | </div> | |
|
32 | 33 | <% end %> |
|
33 | 34 | |
|
34 | 35 | <% content_for :sidebar do %> |
General Comments 0
You need to be logged in to leave comments.
Login now