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