To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / app / views / versions / index.html.erb @ 442:753f1380d6bc

History | View | Annotate | Download (2.02 KB)

1
<h2><%=l(:label_roadmap)%></h2>
2

    
3
<% if @versions.empty? %>
4
<p class="nodata"><%= l(:label_no_data) %></p>
5
<% else %>
6
<div id="roadmap">
7
<% @versions.each do |version| %>   
8
    <h3 class="version"><%= tag 'a', :name => version.name %><%= link_to_version version %></h3>
9
    <%= render :partial => 'versions/overview', :locals => {:version => version} %>
10
    <%= render(:partial => "wiki/content", :locals => {:content => version.wiki_page.content}) if version.wiki_page %>
11

    
12
    <% if (issues = @issues_by_version[version]) && issues.size > 0 %>
13
    <% form_tag({}) do -%>        
14
    <table class="list related-issues">
15
    <caption><%= l(:label_related_issues) %></caption>
16
    <%- issues.each do |issue| -%>
17
      <tr class="hascontextmenu">
18
        <td class="checkbox"><%= check_box_tag 'ids[]', issue.id %></td>
19
        <td><%= link_to_issue(issue, :project => (@project != issue.project)) %></td>
20
      </tr>
21
    <%- end -%>
22
    </table>
23
    <% end %>
24
    <% end %>
25
    <%= call_hook :view_projects_roadmap_version_bottom, :version => version %>
26
<% end %>
27
</div>
28
<% end %>
29

    
30
<% content_for :sidebar do %>
31
<% form_tag({}, :method => :get) do %>
32
<h3><%= l(:label_roadmap) %></h3>
33
<% @trackers.each do |tracker| %>
34
  <label><%= check_box_tag "tracker_ids[]", tracker.id, (@selected_tracker_ids.include? tracker.id.to_s), :id => nil %>
35
  <%=h tracker.name %></label><br />
36
<% end %>
37
<br />
38
<label for="completed"><%= check_box_tag "completed", 1, params[:completed] %> <%= l(:label_show_completed_versions) %></label>
39
<% if @project.descendants.active.any? %>
40
        <%= hidden_field_tag 'with_subprojects', 0 %>
41
  <br /><label><%= check_box_tag 'with_subprojects', 1, @with_subprojects %> <%=l(:label_subproject_plural)%></label>
42
<% end %>
43
<p><%= submit_tag l(:button_apply), :class => 'button-small', :name => nil %></p>
44
<% end %>
45

    
46
<h3><%= l(:label_version_plural) %></h3>
47
<% @versions.each do |version| %>
48
<%= link_to format_version_name(version), "##{version.name}" %><br />
49
<% end %>
50
<% end %>
51

    
52
<% html_title(l(:label_roadmap)) %>
53

    
54
<%= context_menu issues_context_menu_path %>