@@ -70,7 +70,6 class Issue < ActiveRecord::Base | |||||
70 | } |
|
70 | } | |
71 |
|
71 | |||
72 | scope :recently_updated, :order => "#{Issue.table_name}.updated_on DESC" |
|
72 | scope :recently_updated, :order => "#{Issue.table_name}.updated_on DESC" | |
73 | scope :with_limit, lambda { |limit| { :limit => limit} } |
|
|||
74 | scope :on_active_project, :include => [:status, :project, :tracker], |
|
73 | scope :on_active_project, :include => [:status, :project, :tracker], | |
75 | :conditions => ["#{Project.table_name}.status=#{Project::STATUS_ACTIVE}"] |
|
74 | :conditions => ["#{Project.table_name}.status=#{Project::STATUS_ACTIVE}"] | |
76 |
|
75 |
@@ -1,5 +1,5 | |||||
1 | <h3><%=l(:label_watched_issues)%> (<%= Issue.visible.watched_by(user.id).count %>)</h3> |
|
1 | <h3><%=l(:label_watched_issues)%> (<%= Issue.visible.watched_by(user.id).count %>)</h3> | |
2 |
<% watched_issues = Issue.visible.on_active_project.watched_by(user.id).recently_updated. |
|
2 | <% watched_issues = Issue.visible.on_active_project.watched_by(user.id).recently_updated.limit(10) %> | |
3 |
|
3 | |||
4 | <%= render :partial => 'issues/list_simple', :locals => { :issues => watched_issues } %> |
|
4 | <%= render :partial => 'issues/list_simple', :locals => { :issues => watched_issues } %> | |
5 | <% if watched_issues.length > 0 %> |
|
5 | <% if watched_issues.length > 0 %> |
General Comments 0
You need to be logged in to leave comments.
Login now