<%= link_to_if_authorized l(:button_update), {:controller => 'deliverables', :action => 'edit', :id => @deliverable}, :onclick => 'showAndScrollTo("update", "deliverable_description"); return false;', :class => 'icon icon-edit', :accesskey => accesskey(:edit) %>
<%= link_to_if_authorized l(:button_copy), {:controller => 'deliverables', :action => 'new', :project_id => @project, :copy_from => @deliverable }, :class => 'icon icon-copy' %>
<%= link_to_if_authorized l(:button_delete), {:controller => 'deliverables', :action => 'destroy', :id => @deliverable}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %>
<%= l(:label_deliverable) %> #<%= @deliverable.id %>
<%=h @deliverable.subject %>
<%= authoring @deliverable.created_on, @deliverable.author %>.
<%= l(:label_updated_time, distance_of_time_in_words(Time.now, @deliverable.updated_on)) + '.' if @deliverable.created_on != @deliverable.updated_on %>
<%=l(:field_type)%>: |
<%= @deliverable.type_label %> |
<%=l(:field_fixed_date)%>: |
<%= format_date(@deliverable.fixed_date) %> |
<%=l(:field_status)%>: |
<%= l(@deliverable.status) %> |
<%=l(:field_budget_ratio)%>: |
<%= extended_progress_bar(@deliverable.budget_ratio, :width => '80px', :legend => "#{@deliverable.budget_ratio}%") %> |
<%=l(:field_description)%>
<%= textilizable @deliverable, :description, :attachments => @deliverable.attachments %>
<%= link_to_attachments @deliverable %>
<%= render :partial => "show_#{@deliverable.kind.underscore}" %>
<% if authorize_for('deliverables', 'edit') %>
<%= l(:button_update) %>
<%= render :partial => 'edit' %>
<% end %>
<%= l(:label_export_to) %>
<%= link_to 'PDF', {:format => 'pdf'}, :class => 'pdf' %>
<% html_title "#{l(:label_deliverable)} ##{@deliverable.id}: #{@deliverable.subject}" %>
<% content_for :sidebar do %>
<%= render :partial => 'deliverables/sidebar' %>
<% end %>
<% content_for :header_tags do %>
<%= stylesheet_link_tag 'scm' %>
<%= stylesheet_link_tag 'costs', :plugin => 'redmine_costs' %>
<%= javascript_include_tag 'deliverables', :plugin => 'redmine_costs' %>
<% end %>