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