To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / versions / index.html.erb @ 1591:63650ae64bf2
History | View | Annotate | Download (3.03 KB)
| 1 |
<div class="contextual"> |
|---|---|
| 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) %>
|
| 4 |
</div>
|
| 5 |
|
| 6 |
<h2><%=l(:label_roadmap)%></h2> |
| 7 |
|
| 8 |
<% if @versions.empty? %>
|
| 9 |
<p class="nodata"><%= l(:label_no_data) %></p> |
| 10 |
<% else %>
|
| 11 |
<div id="roadmap"> |
| 12 |
<% @versions.each do |version| %>
|
| 13 |
<h3 class="version"><%= link_to_version version, :name => version_anchor(version) %></h3> |
| 14 |
<%= render :partial => 'versions/overview', :locals => {:version => version} %>
|
| 15 |
<%= render(:partial => "wiki/content",
|
| 16 |
:locals => {:content => version.wiki_page.content}) if version.wiki_page %>
|
| 17 |
<% if (issues = @issues_by_version[version]) && issues.size > 0 %>
|
| 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 class="subject"><%= link_to_issue(issue, :project => (@project != issue.project)) %></td> |
| 25 |
</tr>
|
| 26 |
<% end -%>
|
| 27 |
</table>
|
| 28 |
<% end %>
|
| 29 |
<% end %>
|
| 30 |
<%= call_hook :view_projects_roadmap_version_bottom, :version => version %>
|
| 31 |
<% end %>
|
| 32 |
</div>
|
| 33 |
<% end %>
|
| 34 |
|
| 35 |
<% content_for :sidebar do %>
|
| 36 |
<%= form_tag({}, :method => :get) do %>
|
| 37 |
<h3><%= l(:label_roadmap) %></h3> |
| 38 |
<ul>
|
| 39 |
<% @trackers.each do |tracker| %>
|
| 40 |
<li>
|
| 41 |
<label>
|
| 42 |
<%= check_box_tag("tracker_ids[]", tracker.id,
|
| 43 |
(@selected_tracker_ids.include? tracker.id.to_s),
|
| 44 |
:id => nil) %>
|
| 45 |
<%= tracker.name %>
|
| 46 |
</label>
|
| 47 |
</li>
|
| 48 |
<% end %>
|
| 49 |
</ul>
|
| 50 |
<p></p> |
| 51 |
<ul>
|
| 52 |
<li>
|
| 53 |
<label for="completed"> |
| 54 |
<%= check_box_tag "completed", 1, params[:completed] %> <%= l(:label_show_completed_versions) %> |
| 55 |
</label>
|
| 56 |
</li>
|
| 57 |
<% if @project.descendants.active.any? %>
|
| 58 |
<li>
|
| 59 |
<%= hidden_field_tag 'with_subprojects', 0 %>
|
| 60 |
<label>
|
| 61 |
<%= check_box_tag 'with_subprojects', 1, @with_subprojects %> <%=l(:label_subproject_plural)%> |
| 62 |
</label>
|
| 63 |
</li>
|
| 64 |
<% end %>
|
| 65 |
</ul>
|
| 66 |
<p><%= submit_tag l(:button_apply), :class => 'button-small', :name => nil %></p> |
| 67 |
<% end %>
|
| 68 |
|
| 69 |
<h3><%= l(:label_version_plural) %></h3> |
| 70 |
<ul>
|
| 71 |
<% @versions.each do |version| %>
|
| 72 |
<li>
|
| 73 |
<%= link_to(format_version_name(version), "##{version_anchor(version)}") %>
|
| 74 |
</li>
|
| 75 |
<% end %>
|
| 76 |
</ul>
|
| 77 |
<% if @completed_versions.present? %>
|
| 78 |
<p>
|
| 79 |
<%= link_to_function l(:label_completed_versions),
|
| 80 |
'$("#toggle-completed-versions").toggleClass("collapsed"); $("#completed-versions").toggle()',
|
| 81 |
:id => 'toggle-completed-versions', :class => 'collapsible collapsed' %>
|
| 82 |
<ul id = "completed-versions" style = "display:none;"> |
| 83 |
<% @completed_versions.each do |version| %>
|
| 84 |
<li><%= link_to(format_version_name(version), version_path(version)) %></li> |
| 85 |
<% end %>
|
| 86 |
</ul>
|
| 87 |
</p>
|
| 88 |
<% end %>
|
| 89 |
<% end %>
|
| 90 |
|
| 91 |
<% html_title(l(:label_roadmap)) %>
|
| 92 |
|
| 93 |
<%= context_menu issues_context_menu_path %>
|