<%#-- copyright OpenProject is a project management system. Copyright (C) 2012-2013 the OpenProject Team This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 3. See doc/COPYRIGHT.rdoc for more details. ++#%>

<%=l(:label_assigned_to_me_issues)%> (<%= Issue.visible.open.count(:conditions => {:assigned_to_id => User.current.id, :project_id => @project.id})%>)

<% assigned_issues = Issue.visible.open.find(:all, :conditions => {:assigned_to_id => User.current.id, :project_id => @project.id}, :limit => 10, :include => [ :status, :project, :type, :priority ], :order => "#{IssuePriority.table_name}.position DESC, #{Issue.table_name}.updated_at DESC") %> <%= render :partial => 'issues/list_simple', :locals => { :issues => assigned_issues } %> <% if assigned_issues.length > 0 %>

<%= link_to l(:label_issue_view_all_assigned_to_me), :controller => '/issues', :action => 'index', :set_filter => 1, :assigned_to_id => 'me', :sort => 'priority:desc,updated_at:desc' %>

<% end %> <% content_for :header_tags do %> <%= auto_discovery_link_tag(:atom, {:controller => '/issues', :action => 'index', :set_filter => 1, :assigned_to_id => 'me', :format => 'atom', :key => User.current.rss_key}, {:title => l(:label_assigned_to_me_issues)}) %> <% end %>