To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / .svn / pristine / ce / cebffaae753a7cc849c7601935577fcde31c4695.svn-base @ 1297:0a574315af3e
History | View | Annotate | Download (2.74 KB)
| 1 | 1296:038ba2d95de8 | Chris | <div class="contextual"> |
|---|---|---|---|
| 2 | <%= link_to l(:label_version_new), new_project_version_path(@project), :class => 'icon icon-add' if User.current.allowed_to?(:manage_versions, @project) %> |
||
| 3 | </div> |
||
| 4 | |||
| 5 | <h2><%=l(:label_roadmap)%></h2> |
||
| 6 | |||
| 7 | <% if @versions.empty? %> |
||
| 8 | <p class="nodata"><%= l(:label_no_data) %></p> |
||
| 9 | <% else %> |
||
| 10 | <div id="roadmap"> |
||
| 11 | <% @versions.each do |version| %> |
||
| 12 | <h3 class="version"><%= link_to_version version, :name => version_anchor(version) %></h3> |
||
| 13 | <%= render :partial => 'versions/overview', :locals => {:version => version} %>
|
||
| 14 | <%= render(:partial => "wiki/content", :locals => {:content => version.wiki_page.content}) if version.wiki_page %>
|
||
| 15 | |||
| 16 | <% 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 %> |
||
| 28 | <% end %> |
||
| 29 | <%= call_hook :view_projects_roadmap_version_bottom, :version => version %> |
||
| 30 | <% end %> |
||
| 31 | </div> |
||
| 32 | <% end %> |
||
| 33 | |||
| 34 | <% content_for :sidebar do %> |
||
| 35 | <%= form_tag({}, :method => :get) do %>
|
||
| 36 | <h3><%= l(:label_roadmap) %></h3> |
||
| 37 | <% @trackers.each do |tracker| %> |
||
| 38 | <label><%= check_box_tag "tracker_ids[]", tracker.id, (@selected_tracker_ids.include? tracker.id.to_s), :id => nil %> |
||
| 39 | <%=h tracker.name %></label><br /> |
||
| 40 | <% end %> |
||
| 41 | <br /> |
||
| 42 | <label for="completed"><%= check_box_tag "completed", 1, params[:completed] %> <%= l(:label_show_completed_versions) %></label> |
||
| 43 | <% if @project.descendants.active.any? %> |
||
| 44 | <%= hidden_field_tag 'with_subprojects', 0 %> |
||
| 45 | <br /><label><%= check_box_tag 'with_subprojects', 1, @with_subprojects %> <%=l(:label_subproject_plural)%></label> |
||
| 46 | <% end %> |
||
| 47 | <p><%= submit_tag l(:button_apply), :class => 'button-small', :name => nil %></p> |
||
| 48 | <% end %> |
||
| 49 | |||
| 50 | <h3><%= l(:label_version_plural) %></h3> |
||
| 51 | <% @versions.each do |version| %> |
||
| 52 | <%= link_to format_version_name(version), "##{version_anchor(version)}" %><br />
|
||
| 53 | <% end %> |
||
| 54 | <% if @completed_versions.present? %> |
||
| 55 | <p> |
||
| 56 | <%= link_to_function l(:label_completed_versions), |
||
| 57 | '$("#toggle-completed-versions").toggleClass("collapsed"); $("#completed-versions").toggle()',
|
||
| 58 | :id => 'toggle-completed-versions', :class => 'collapsible collapsed' %><br /> |
||
| 59 | <span id="completed-versions" style="display:none;"> |
||
| 60 | <%= @completed_versions.map {|version| link_to format_version_name(version), version_path(version)}.join("<br />\n").html_safe %>
|
||
| 61 | </span> |
||
| 62 | </p> |
||
| 63 | <% end %> |
||
| 64 | <% end %> |
||
| 65 | |||
| 66 | <% html_title(l(:label_roadmap)) %> |
||
| 67 | |||
| 68 | <%= context_menu issues_context_menu_path %> |