2009-02-21 14:04:50 +03:00
|
|
|
<h3><%=l(:label_watched_issues)%> (<%= Issue.visible.count(:include => :watchers,
|
|
|
|
:conditions => ["#{Watcher.table_name}.user_id = ?", user.id]) %>)</h3>
|
2009-01-27 21:19:27 +03:00
|
|
|
<% watched_issues = Issue.visible.find(:all,
|
2007-04-21 16:28:22 +04:00
|
|
|
:include => [:status, :project, :tracker, :watchers],
|
|
|
|
:limit => 10,
|
2009-01-27 21:19:27 +03:00
|
|
|
:conditions => ["#{Watcher.table_name}.user_id = ?", user.id],
|
2007-04-21 16:28:22 +04:00
|
|
|
:order => "#{Issue.table_name}.updated_on DESC") %>
|
|
|
|
<%= render :partial => 'issues/list_simple', :locals => { :issues => watched_issues } %>
|
|
|
|
<% if watched_issues.length > 0 %>
|
2009-02-12 20:38:36 +03:00
|
|
|
<p class="small"><%= link_to l(:label_issue_view_all), :controller => 'issues', :action => 'index', :set_filter => 1, :watcher_id => 'me' %></p>
|
2007-04-21 16:28:22 +04:00
|
|
|
<% end %>
|