@@ -1,50 +1,51 | |||
|
1 | 1 | <div class="contextual"> |
|
2 | 2 | <%= link_to_if_authorized l(:button_edit), {:controller => 'versions', :action => 'edit', :id => @version}, :class => 'icon icon-edit' %> |
|
3 | <%= call_hook(:view_versions_show_contextual, { :version => @version, :project => @project }) %> | |
|
3 | 4 | </div> |
|
4 | 5 | |
|
5 | 6 | <h2><%= h(@version.name) %></h2> |
|
6 | 7 | |
|
7 | 8 | <div id="version-summary"> |
|
8 | 9 | <% if @version.estimated_hours > 0 || User.current.allowed_to?(:view_time_entries, @project) %> |
|
9 | 10 | <fieldset><legend><%= l(:label_time_tracking) %></legend> |
|
10 | 11 | <table> |
|
11 | 12 | <tr> |
|
12 | 13 | <td width="130px" align="right"><%= l(:field_estimated_hours) %></td> |
|
13 | 14 | <td width="240px" class="total-hours"width="130px" align="right"><%= html_hours(l_hours(@version.estimated_hours)) %></td> |
|
14 | 15 | </tr> |
|
15 | 16 | <% if User.current.allowed_to?(:view_time_entries, @project) %> |
|
16 | 17 | <tr> |
|
17 | 18 | <td width="130px" align="right"><%= l(:label_spent_time) %></td> |
|
18 | 19 | <td width="240px" class="total-hours"><%= html_hours(l_hours(@version.spent_hours)) %></td> |
|
19 | 20 | </tr> |
|
20 | 21 | <% end %> |
|
21 | 22 | </table> |
|
22 | 23 | </fieldset> |
|
23 | 24 | <% end %> |
|
24 | 25 | |
|
25 | 26 | <div id="status_by"> |
|
26 | 27 | <%= render_issue_status_by(@version, params[:status_by]) if @version.fixed_issues.count > 0 %> |
|
27 | 28 | </div> |
|
28 | 29 | </div> |
|
29 | 30 | |
|
30 | 31 | <div id="roadmap"> |
|
31 | 32 | <%= render :partial => 'versions/overview', :locals => {:version => @version} %> |
|
32 | 33 | <%= render(:partial => "wiki/content", :locals => {:content => @version.wiki_page.content}) if @version.wiki_page %> |
|
33 | 34 | |
|
34 | 35 | <% issues = @version.fixed_issues.find(:all, |
|
35 | 36 | :include => [:status, :tracker], |
|
36 | 37 | :order => "#{Tracker.table_name}.position, #{Issue.table_name}.id") %> |
|
37 | 38 | <% if issues.size > 0 %> |
|
38 | 39 | <fieldset class="related-issues"><legend><%= l(:label_related_issues) %></legend> |
|
39 | 40 | <ul> |
|
40 | 41 | <% issues.each do |issue| -%> |
|
41 | 42 | <li><%= link_to_issue(issue) %>: <%=h issue.subject %></li> |
|
42 | 43 | <% end -%> |
|
43 | 44 | </ul> |
|
44 | 45 | </fieldset> |
|
45 | 46 | <% end %> |
|
46 | 47 | </div> |
|
47 | 48 | |
|
48 | 49 | <%= call_hook :view_versions_show_bottom, :version => @version %> |
|
49 | 50 | |
|
50 | 51 | <% html_title @version.name %> |
General Comments 0
You need to be logged in to leave comments.
Login now