<%#-- copyright OpenProject is a project management system. Copyright (C) 2011-2013 the OpenProject Foundation (OPF) This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. See doc/COPYRIGHT.md for more details. ++#%>
<%= context_links = [] if User.current.allowed_to?(:add_subprojects, project) context_links << link_to(l(:label_subproject_new), { :controller => 'projects', :action => 'new', :parent_id => project }, :class => 'icon icon-add') end if User.current.allowed_to?(:edit_project, project) context_links << link_to(l(:label_personalize_page), { :action => 'page_layout' }, :class => 'icon icon-edit') end context_links.join("   ").html_safe %>

<%=l(:label_overview)%>

<% ['top', 'left', 'right'].each do |position| %>
<% blocks[position].each do |b| %>
<% if MyProjectsOverviewsController.available_blocks.keys.include? b %> <%= render :partial => "my_projects_overviews/blocks/#{b}" %> <% elsif b.respond_to? :to_ary %> <%= render :partial => "textilizable", :locals => { :project => project, :user => user, :block_title => b[1], :textile => b.last } %> <% end %>
<% end if blocks[position] %>
<% end %> <%= context_menu :controller => '/work_packages', :action => 'context_menu' %> <% content_for :sidebar do %> <% if total_hours.present? %>

<%= l(:label_spent_time) %>

<%= l_hours(total_hours) %>

<%= link_to(l(:label_details), {:controller => 'timelog', :action => 'index', :project_id => project}) %> | <%= link_to(l(:label_report), {:controller => 'time_entry_reports', :action => 'report', :project_id => project}) %> <% if authorize_for('timelog', 'new') %> | <%= link_to l(:button_log_time), {:controller => 'timelog', :action => 'new', :project_id => project} %> <% end %>

<% end %> <%= call_hook(:view_projects_show_sidebar_bottom, :project => project) %> <% end %> <% content_for :header_tags do %> <%= javascript_include_tag "my_project_page/my_project_page", :plugin => 'chiliproject_my_project_page' %> <%= auto_discovery_link_tag(:atom, {:controller => 'activities', :action => 'index', :id => @project, :format => 'atom', :key => User.current.rss_key}) %> <%= stylesheet_link_tag "my_project_page/my_projects_overview", :plugin => "chiliproject_my_project_page", :media => 'all' %> <% end %> <% html_title(l(:label_overview)) -%>