<%= watcher_link(@account, User.current) %> <%= link_to_if_authorized l(:button_edit), {:controller => "accounts", :action => "edit", :id => @account}, :class => 'icon icon-edit' unless @account.nil? %> <%= link_to_if_authorized l(:button_delete), {:controller => "accounts", :action => "destroy", :id => @account}, :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del' unless @account.nil? %>

<%= "#{l(:label_account)} ##{@account.id}" %>

<%= "#{@account.name }: #{@account.amount_to_s}" %>

<%= render_custom_fields_rows(@account) %> <%= call_hook(:view_accounts_show_details_bottom, :account => @account) %>
<% if @account.description? || (@account.attachments && @account.attachments.any?) -%>
<% if @account.description? %>

<%=l(:field_description)%>

<% attachments = nil %> <%= textilizable @account, :description, :attachments => attachments %>
<% end %> <%= link_to_attachments @account, :thumbnails => true %> <% end -%> <%= call_hook(:view_accounts_show_description_bottom, :account => @account) %> <% unless @operations.empty? %>
<% if User.current.allowed_to?(:edit_operations, @project) %> <%= link_to l(:button_add), new_operation_path(:project_id => @project, :account_id => @account) %> <% end %>

<%=l(:label_operation_plural)%>

<%= render :partial => 'operations' %> <%= pagination_links_full @operations_pages, @operations_count %>
<% end %>
<% content_for :sidebar do %> <% end %> <% html_title "#{l(:label_account)} ##{@account.id}: #{@account.name}" %> <% content_for :header_tags do %> <% end %>