<%= link_to_if_authorized l(:button_update), {:controller => 'cost_objects', :action => 'edit', :id => @cost_object}, :onclick => 'showAndScrollTo("update", "cost_object_description"); return false;', :class => 'icon icon-edit', :accesskey => accesskey(:edit) %> <%= link_to_if_authorized l(:button_copy), {:controller => 'cost_objects', :action => 'new', :project_id => @project, :copy_from => @cost_object }, :class => 'icon icon-copy' %> <%= link_to_if_authorized l(:button_delete), {:controller => 'cost_objects', :action => 'destroy', :id => @cost_object}, :confirm => l(:text_are_you_sure), :method => :post, :class => 'icon icon-del' %>

<%= l(:label_cost_object_id, :id => @cost_object.id) %>

<%=h @cost_object.subject %>

<%= authoring @cost_object.created_on, @cost_object.author %>. <%= l(:label_updated_time, distance_of_time_in_words(Time.now, @cost_object.updated_on)) + '.' if @cost_object.created_on != @cost_object.updated_on %>

<%=l(:field_type)%>: <%= @cost_object.type_label %> <%=l(:field_fixed_date)%>: <%= format_date(@cost_object.fixed_date) %>
<%=l(:field_status)%>: <%= l(@cost_object.status) %> <%=l(:field_budget_ratio)%>: <%= extended_progress_bar(@cost_object.budget_ratio, :width => '80px', :legend => "#{@cost_object.budget_ratio}%") %>

<%=l(:field_description)%>

<%= textilizable @cost_object, :description, :attachments => @cost_object.attachments %>
<%= link_to_attachments @cost_object %> <%= render :partial => "show_variable_cost_object" %>
<% if authorize_for('cost_objects', 'edit') %> <% end %> <% html_title "#{l(:label_cost_object)} ##{@cost_object.id}: #{@cost_object.subject}" %> <% content_for :header_tags do %> <%= render :partial => 'shared/costs_header' %> <% end %>