%= error_messages_for 'department' %>
<% html_title "#{l(:label_department)} ##{@department.id}: #{@department.name}" %>
<%= link_to l(:button_edit), edit_department_path(@department), :class => 'icon icon-edit' if User.current.allowed_people_to?(:edit_departments) %>
<%= link_to l(:button_delete), department_path(@department), :confirm => l(:text_are_you_sure), :method => :delete, :class => 'icon icon-del' if User.current.allowed_people_to?(:delete_departments) %>
<%= l(:label_department) %> #<%= @department.id %>
<%= avatar(@department.head, :size => "50") %>
<%= @department.name %>
<%= l(:label_department_head) %>
<%= link_to_user @department.head %>
<% if @department.background? || @department.attachments.any? -%>
<% if @department.background? %>
<%=l(:label_people_background)%>
<%= textilizable @department, :background, :attachments => @department.attachments %>
<% end %>
<%= link_to_attachments @department, :thumbnails => true %>
<% end -%>
<% content_for :sidebar do %>
<%= l(:label_people) %>
<%= render :partial => 'people/person_data', :collection => @department.people.active %>
<% end %>
<% content_for :header_tags do %>
<%= javascript_include_tag :people, :plugin => 'redmine_people' %>
<%= stylesheet_link_tag :people, :plugin => 'redmine_people' %>
<% end %>