62e58f26b0
* Added migrations to change Enumerations to an STI relationship * Added TimeEntryActivity model (STI) * Added DocumentCategory model (STI) * Added IssuePriority model (STI) * Added Enumeration#get_subclasses to get a list of the subclasses of Enumeration * Changed Enumeration to use the STI type field instead of the opt field * Changed Enumeration#opt to return the old opt values but with a deprecation warning. * Removed Enumeration::OPTIONS * Removed the dynamic named_scopes in favor of specific named_scopes. Kept for compatibility reasons. * Added Enumeration#default so each subclass can easily find it's default record. * Fixed Enumeration#default to use the STI scoping with a fake default scope for finding Enumeration's default. * Added a 'all' named scope for getting all records in order by position. * Added Deprecation warnings to the old named_scopes in Enumerations. * Moved various methods off of Enumeration and onto the concrete classes * Changed the EnumerationsController to use types * Updated the Enumeration list template * Added has_many relationships to the Enumeration STI classes. * Fixes for tests. #3007 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2777 e93f8b46-1217-0410-a6f0-8f06a7374b81
23 lines
1.3 KiB
Plaintext
23 lines
1.3 KiB
Plaintext
<h3><%=l(:label_assigned_to_me_issues)%> (<%= Issue.visible.open.count(:conditions => {:assigned_to_id => User.current.id})%>)</h3>
|
|
|
|
<% assigned_issues = Issue.visible.open.find(:all,
|
|
:conditions => {:assigned_to_id => User.current.id},
|
|
:limit => 10,
|
|
:include => [ :status, :project, :tracker, :priority ],
|
|
:order => "#{IssuePriority.table_name}.position DESC, #{Issue.table_name}.updated_on DESC") %>
|
|
<%= render :partial => 'issues/list_simple', :locals => { :issues => assigned_issues } %>
|
|
<% if assigned_issues.length > 0 %>
|
|
<p class="small"><%= link_to l(:label_issue_view_all), :controller => 'issues',
|
|
:action => 'index',
|
|
:set_filter => 1,
|
|
:assigned_to_id => 'me',
|
|
:sort => 'priority:desc,updated_on:desc' %></p>
|
|
<% 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 %>
|