summaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2009-03-17 17:27:30 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2009-03-17 17:27:30 +0000
commitb44317b76255be4c8d8551655f78007c505cf580 (patch)
tree9d4992252fa1fe58552bc070f4923d5d373ac4cb /app/views
parent4181f859623c41a679ae5b9e8453c750778eb8de (diff)
downloadredmine-b44317b76255be4c8d8551655f78007c505cf580.tar.gz
redmine-b44317b76255be4c8d8551655f78007c505cf580.zip
Adds issue count on assigned and reported 'My page' modules (#2986).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2595 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/views')
-rw-r--r--app/views/my/blocks/_issuesassignedtome.rhtml7
-rw-r--r--app/views/my/blocks/_issuesreportedbyme.rhtml5
2 files changed, 7 insertions, 5 deletions
diff --git a/app/views/my/blocks/_issuesassignedtome.rhtml b/app/views/my/blocks/_issuesassignedtome.rhtml
index f5e2e3e65..507a45be9 100644
--- a/app/views/my/blocks/_issuesassignedtome.rhtml
+++ b/app/views/my/blocks/_issuesassignedtome.rhtml
@@ -1,6 +1,7 @@
-<h3><%=l(:label_assigned_to_me_issues)%></h3>
-<% assigned_issues = Issue.visible.find(:all,
- :conditions => ["assigned_to_id=? AND #{IssueStatus.table_name}.is_closed=?", user.id, false],
+<h3><%=l(:label_assigned_to_me_issues)%> (<%= Issue.visible.open.count(:conditions => {:assigned_to_id => User.current.id})%>)</h3>
+
+<% assigned_issues = Issue.visible.open.find(:all,
+ :conditions => {:assigned_to_id => User.current.id},
:limit => 10,
:include => [ :status, :project, :tracker, :priority ],
:order => "#{Enumeration.table_name}.position DESC, #{Issue.table_name}.updated_on DESC") %>
diff --git a/app/views/my/blocks/_issuesreportedbyme.rhtml b/app/views/my/blocks/_issuesreportedbyme.rhtml
index aa6e0e0eb..affaa1e76 100644
--- a/app/views/my/blocks/_issuesreportedbyme.rhtml
+++ b/app/views/my/blocks/_issuesreportedbyme.rhtml
@@ -1,6 +1,7 @@
-<h3><%=l(:label_reported_issues)%></h3>
+<h3><%=l(:label_reported_issues)%> (<%= Issue.visible.count(:conditions => { :author_id => User.current.id }) %>)</h3>
+
<% reported_issues = Issue.visible.find(:all,
- :conditions => { :author_id => user.id },
+ :conditions => { :author_id => User.current.id },
:limit => 10,
:include => [ :status, :project, :tracker ],
:order => "#{Issue.table_name}.updated_on DESC") %>