comparison app/views/versions/show.html.erb @ 908:c6c2cbd0afee redmine-1.3

Rename .rhtml files to .html.erb in preparation for merge
author Chris Cannam
date Fri, 24 Feb 2012 18:36:29 +0000
parents app/views/versions/show.rhtml@cbce1fd3b1b7
children cbb26bc654de
comparison
equal deleted inserted replaced
907:df51e8ff578d 908:c6c2cbd0afee
1 <div class="contextual">
2 <%= link_to_if_authorized l(:button_edit), {:controller => 'versions', :action => 'edit', :id => @version}, :class => 'icon icon-edit' %>
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 <%= call_hook(:view_versions_show_contextual, { :version => @version, :project => @project }) %>
5 </div>
6
7 <h2><%= h(@version.name) %></h2>
8
9 <div id="roadmap">
10 <%= render :partial => 'versions/overview', :locals => {:version => @version} %>
11 <%= render(:partial => "wiki/content", :locals => {:content => @version.wiki_page.content}) if @version.wiki_page %>
12
13 <div id="version-summary">
14 <% if @version.estimated_hours > 0 || User.current.allowed_to?(:view_time_entries, @project) %>
15 <fieldset><legend><%= l(:label_time_tracking) %></legend>
16 <table>
17 <tr>
18 <td width="130px" align="right"><%= l(:field_estimated_hours) %></td>
19 <td width="240px" class="total-hours"width="130px" align="right"><%= html_hours(l_hours(@version.estimated_hours)) %></td>
20 </tr>
21 <% if User.current.allowed_to?(:view_time_entries, @project) %>
22 <tr>
23 <td width="130px" align="right"><%= l(:label_spent_time) %></td>
24 <td width="240px" class="total-hours"><%= html_hours(l_hours(@version.spent_hours)) %></td>
25 </tr>
26 <% end %>
27 </table>
28 </fieldset>
29 <% end %>
30
31 <div id="status_by">
32 <%= render_issue_status_by(@version, params[:status_by]) if @version.fixed_issues.count > 0 %>
33 </div>
34 </div>
35
36 <% if @issues.present? %>
37 <% form_tag({}) do -%>
38 <table class="list related-issues">
39 <caption><%= l(:label_related_issues) %></caption>
40 <%- @issues.each do |issue| -%>
41 <tr class="hascontextmenu">
42 <td class="checkbox"><%= check_box_tag 'ids[]', issue.id %></td>
43 <td><%= link_to_issue(issue, :project => (@project != issue.project)) %></td>
44 </tr>
45 <% end %>
46 </table>
47 <% end %>
48 <%= context_menu issues_context_menu_path %>
49 <% end %>
50 </div>
51
52 <%= call_hook :view_versions_show_bottom, :version => @version %>
53
54 <% html_title @version.name %>