To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / app / views / versions / .svn / text-base / show.rhtml.svn-base @ 442:753f1380d6bc
History | View | Annotate | Download (2.18 KB)
| 1 | 0:513646585e45 | Chris | <div class="contextual"> |
|---|---|---|---|
| 2 | <%= link_to_if_authorized l(:button_edit), {:controller => 'versions', :action => 'edit', :id => @version}, :class => 'icon icon-edit' %>
|
||
| 3 | 37:94944d00e43c | chris | <%= 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 | 0:513646585e45 | Chris | <%= call_hook(:view_versions_show_contextual, { :version => @version, :project => @project }) %>
|
| 5 | </div> |
||
| 6 | |||
| 7 | <h2><%= h(@version.name) %></h2> |
||
| 8 | |||
| 9 | 441:cbce1fd3b1b7 | Chris | <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 | 0:513646585e45 | Chris | <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 | 1:cca12e1c1fd4 | Chris | <% if @issues.present? %> |
| 37 | 441:cbce1fd3b1b7 | Chris | <% 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 | 0:513646585e45 | Chris | <% end %> |
| 50 | </div> |
||
| 51 | |||
| 52 | <%= call_hook :view_versions_show_bottom, :version => @version %> |
||
| 53 | |||
| 54 | <% html_title @version.name %> |