To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.
root / .svn / pristine / e1 / e1b019608202e48e45b7a91c615a2ac50c71ab6a.svn-base @ 1297:0a574315af3e
History | View | Annotate | Download (1.45 KB)
| 1 |
<h3><%=l(:label_assigned_to_me_issues)%> (<%= Issue.visible.open.count(:conditions => {:assigned_to_id => ([User.current.id] + User.current.group_ids)})%>)</h3>
|
|---|---|
| 2 |
|
| 3 |
<% assigned_issues = Issue.visible.open.find(:all, |
| 4 |
:conditions => {:assigned_to_id => ([User.current.id] + User.current.group_ids)},
|
| 5 |
:limit => 10, |
| 6 |
:include => [ :status, :project, :tracker, :priority ], |
| 7 |
:order => "#{IssuePriority.table_name}.position DESC, #{Issue.table_name}.updated_on DESC") %>
|
| 8 |
<%= render :partial => 'issues/list_simple', :locals => { :issues => assigned_issues } %>
|
| 9 |
<% if assigned_issues.length > 0 %> |
| 10 |
<p class="small"><%= link_to l(:label_issue_view_all), :controller => 'issues', |
| 11 |
:action => 'index', |
| 12 |
:set_filter => 1, |
| 13 |
:assigned_to_id => 'me', |
| 14 |
:sort => 'priority:desc,updated_on:desc' %></p> |
| 15 |
<% end %> |
| 16 |
|
| 17 |
<% content_for :header_tags do %> |
| 18 |
<%= auto_discovery_link_tag(:atom, |
| 19 |
{:controller => 'issues', :action => 'index', :set_filter => 1,
|
| 20 |
:assigned_to_id => 'me', :format => 'atom', :key => User.current.rss_key}, |
| 21 |
{:title => l(:label_assigned_to_me_issues)}) %>
|
| 22 |
<% end %> |