To check out this repository please hg clone the following URL, or open the URL using EasyMercurial or your preferred Mercurial client.

Statistics Download as Zip
| Branch: | Tag: | Revision:

root / app / views / my / blocks / _issuesassignedtome.rhtml @ 380:6627ac1de32b

History | View | Annotate | Download (1.29 KB)

1
<h3><%=l(:label_assigned_to_me_issues)%> (<%= Issue.visible.open.count(:conditions => {:assigned_to_id => User.current.id})%>)</h3>
2

    
3
<% assigned_issues = Issue.visible.open.find(:all, 
4
                                :conditions => {:assigned_to_id => User.current.id},
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 %>