Mercurial > hg > soundsoftware-site
comparison app/views/versions/.svn/text-base/show.rhtml.svn-base @ 0:513646585e45
* Import Redmine trunk SVN rev 3859
author | Chris Cannam |
---|---|
date | Fri, 23 Jul 2010 15:52:44 +0100 |
parents | |
children | cca12e1c1fd4 |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:513646585e45 |
---|---|
1 <div class="contextual"> | |
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 }) %> | |
4 </div> | |
5 | |
6 <h2><%= h(@version.name) %></h2> | |
7 | |
8 <div id="version-summary"> | |
9 <% if @version.estimated_hours > 0 || User.current.allowed_to?(:view_time_entries, @project) %> | |
10 <fieldset><legend><%= l(:label_time_tracking) %></legend> | |
11 <table> | |
12 <tr> | |
13 <td width="130px" align="right"><%= l(:field_estimated_hours) %></td> | |
14 <td width="240px" class="total-hours"width="130px" align="right"><%= html_hours(l_hours(@version.estimated_hours)) %></td> | |
15 </tr> | |
16 <% if User.current.allowed_to?(:view_time_entries, @project) %> | |
17 <tr> | |
18 <td width="130px" align="right"><%= l(:label_spent_time) %></td> | |
19 <td width="240px" class="total-hours"><%= html_hours(l_hours(@version.spent_hours)) %></td> | |
20 </tr> | |
21 <% end %> | |
22 </table> | |
23 </fieldset> | |
24 <% end %> | |
25 | |
26 <div id="status_by"> | |
27 <%= render_issue_status_by(@version, params[:status_by]) if @version.fixed_issues.count > 0 %> | |
28 </div> | |
29 </div> | |
30 | |
31 <div id="roadmap"> | |
32 <%= render :partial => 'versions/overview', :locals => {:version => @version} %> | |
33 <%= render(:partial => "wiki/content", :locals => {:content => @version.wiki_page.content}) if @version.wiki_page %> | |
34 | |
35 <% issues = @version.fixed_issues.find(:all, | |
36 :include => [:status, :tracker, :priority], | |
37 :order => "#{Tracker.table_name}.position, #{Issue.table_name}.id") %> | |
38 <% if issues.size > 0 %> | |
39 <fieldset class="related-issues"><legend><%= l(:label_related_issues) %></legend> | |
40 <ul> | |
41 <% issues.each do |issue| -%> | |
42 <li><%= link_to_issue(issue) %></li> | |
43 <% end -%> | |
44 </ul> | |
45 </fieldset> | |
46 <% end %> | |
47 </div> | |
48 | |
49 <%= call_hook :view_versions_show_bottom, :version => @version %> | |
50 | |
51 <% html_title @version.name %> |