Project

General

Profile

Patch #7687 ยป patch-reportestemplates.txt

Alexander Kriventsov, 2011-02-22 16:00

 
1
--- app/views/my/blocks/_issuesreportedbyme.rhtml.orig	2011-02-22 14:44:05.000000000 +0000
2
+++ app/views/my/blocks/_issuesreportedbyme.rhtml	2011-02-22 14:44:42.000000000 +0000
3
@@ -1,6 +1,6 @@
4
-<h3><%=l(:label_reported_issues)%> (<%= Issue.visible.count(:conditions => { :author_id => User.current.id }) %>)</h3>
5
+<h3><%=l(:label_reported_issues)%> (<%= Issue.visible.open.count(:conditions => { :author_id => User.current.id }) %>)</h3>
6
 
7
-<% reported_issues = Issue.visible.find(:all, 
8
+<% reported_issues = Issue.visible.open.find(:all, 
9
                                 :conditions => { :author_id => User.current.id },
10
                                 :limit => 10, 
11
                                 :include => [ :status, :project, :tracker ], 
12
--- app/views/my/blocks/_issueswatched.rhtml.orig	2011-02-22 14:41:28.000000000 +0000
13
+++ app/views/my/blocks/_issueswatched.rhtml	2011-02-22 14:41:53.000000000 +0000
14
@@ -1,5 +1,5 @@
15
-<h3><%=l(:label_watched_issues)%> (<%= Issue.visible.watched_by(user.id).count %>)</h3>
16
-<% watched_issues = Issue.visible.on_active_project.watched_by(user.id).recently_updated.with_limit(10) %>
17
+<h3><%=l(:label_watched_issues)%> (<%= Issue.visible.open.watched_by(user.id).count %>)</h3>
18
+<% watched_issues = Issue.visible.on_active_project.open.watched_by(user.id).recently_updated.with_limit(10) %>
19
 
20
 <%= render :partial => 'issues/list_simple', :locals => { :issues => watched_issues } %>
21
 <% if watched_issues.length > 0 %>
    (1-1/1)