@@ -1,57 +1,57 | |||
|
1 | 1 | <div class="contextual"> |
|
2 | 2 | <%= link_to(l(:button_edit), edit_version_path(@version), :class => 'icon icon-edit') if User.current.allowed_to?(:manage_versions, @version.project) %> |
|
3 | 3 | <%= link_to_if_authorized(l(:button_edit_associated_wikipage, :page_title => @version.wiki_page_title), {:controller => 'wiki', :action => 'edit', :project_id => @version.project, :id => Wiki.titleize(@version.wiki_page_title)}, :class => 'icon icon-edit') unless @version.wiki_page_title.blank? || @version.project.wiki.nil? %> |
|
4 | 4 | <%= delete_link version_path(@version, :back_url => url_for(:controller => 'versions', :action => 'index', :project_id => @version.project)) if User.current.allowed_to?(:manage_versions, @version.project) %> |
|
5 | 5 | <%= call_hook(:view_versions_show_contextual, { :version => @version, :project => @project }) %> |
|
6 | 6 | </div> |
|
7 | 7 | |
|
8 | 8 | <h2><%= @version.name %></h2> |
|
9 | 9 | |
|
10 | 10 | <div id="roadmap" class="<%= @version.css_classes %>"> |
|
11 | 11 | <%= render :partial => 'versions/overview', :locals => {:version => @version} %> |
|
12 | 12 | <%= render(:partial => "wiki/content", :locals => {:content => @version.wiki_page.content}) if @version.wiki_page %> |
|
13 | 13 | |
|
14 | 14 | <div id="version-summary"> |
|
15 | 15 | <% if @version.estimated_hours > 0 || User.current.allowed_to?(:view_time_entries, @project) %> |
|
16 | 16 | <fieldset class="time-tracking"><legend><%= l(:label_time_tracking) %></legend> |
|
17 | 17 | <table> |
|
18 | 18 | <tr> |
|
19 | 19 | <th><%= l(:field_estimated_hours) %></th> |
|
20 | 20 | <td class="total-hours"><%= link_to html_hours(l_hours(@version.estimated_hours)), |
|
21 | 21 | project_issues_path(@version.project, :set_filter => 1, :status_id => '*', :fixed_version_id => @version.id, :c => [:tracker, :status, :subject, :estimated_hours], :t => [:estimated_hours]) %></td> |
|
22 | 22 | </tr> |
|
23 | 23 | <% if User.current.allowed_to_view_all_time_entries?(@project) %> |
|
24 | 24 | <tr> |
|
25 | 25 | <th><%= l(:label_spent_time) %></th> |
|
26 | 26 | <td class="total-hours"><%= link_to html_hours(l_hours(@version.spent_hours)), |
|
27 | 27 | project_time_entries_path(@version.project, :set_filter => 1, :"issue.fixed_version_id" => @version.id) %></td> |
|
28 | 28 | </tr> |
|
29 | 29 | <% end %> |
|
30 | 30 | </table> |
|
31 | 31 | </fieldset> |
|
32 | 32 | <% end %> |
|
33 | 33 | |
|
34 | 34 | <div id="status_by"> |
|
35 |
<%= render_issue_status_by(@version, params[:status_by]) if @version.fixed_issues. |
|
|
35 | <%= render_issue_status_by(@version, params[:status_by]) if @version.fixed_issues.exists? %> | |
|
36 | 36 | </div> |
|
37 | 37 | </div> |
|
38 | 38 | |
|
39 | 39 | <% if @issues.present? %> |
|
40 | 40 | <%= form_tag({}, :data => {:cm_url => issues_context_menu_path}) do -%> |
|
41 | 41 | <table class="list related-issues"> |
|
42 | 42 | <caption><%= l(:label_related_issues) %></caption> |
|
43 | 43 | <%- @issues.each do |issue| -%> |
|
44 | 44 | <tr class="issue hascontextmenu"> |
|
45 | 45 | <td class="checkbox"><%= check_box_tag 'ids[]', issue.id, false, :id => nil %></td> |
|
46 | 46 | <td class="subject"><%= link_to_issue(issue, :project => (@project != issue.project)) %></td> |
|
47 | 47 | </tr> |
|
48 | 48 | <% end %> |
|
49 | 49 | </table> |
|
50 | 50 | <% end %> |
|
51 | 51 | <%= context_menu %> |
|
52 | 52 | <% end %> |
|
53 | 53 | </div> |
|
54 | 54 | |
|
55 | 55 | <%= call_hook :view_versions_show_bottom, :version => @version %> |
|
56 | 56 | |
|
57 | 57 | <% html_title @version.name %> |
General Comments 0
You need to be logged in to leave comments.
Login now