summaryrefslogtreecommitdiffstats
path: root/app/helpers
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-04-30 08:10:30 +0000
committerGo MAEDA <maeda@farend.jp>2019-04-30 08:10:30 +0000
commitacac5974e31514d13e14be3c6fbc4c6ade6d3b11 (patch)
tree220603e164c54f5b945095b87a5a16baa4ff9be2 /app/helpers
parent9d2e950f832864ee19252cb8d731d947e1990080 (diff)
downloadredmine-acac5974e31514d13e14be3c6fbc4c6ade6d3b11.tar.gz
redmine-acac5974e31514d13e14be3c6fbc4c6ade6d3b11.zip
New My page block: Updated issues (#30975).
Patch by Yuichi HARADA. git-svn-id: http://svn.redmine.org/redmine/trunk@18109 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/my_helper.rb11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/helpers/my_helper.rb b/app/helpers/my_helper.rb
index 67a57faaa..ca96dd72c 100644
--- a/app/helpers/my_helper.rb
+++ b/app/helpers/my_helper.rb
@@ -115,6 +115,17 @@ module MyHelper
render :partial => 'my/blocks/issues', :locals => {:query => query, :issues => issues, :block => block}
end
+ def render_issuesupdatedbyme_block(block, settings)
+ query = IssueQuery.new(:name => l(:label_updated_issues), :user => User.current)
+ query.add_filter 'updated_by', '=', ['me']
+ query.add_filter 'project.status', '=', ["#{Project::STATUS_ACTIVE}"]
+ query.column_names = settings[:columns].presence || ['project', 'tracker', 'status', 'subject']
+ query.sort_criteria = settings[:sort].presence || [['updated_on', 'desc']]
+ issues = query.issues(:limit => 10)
+
+ render :partial => 'my/blocks/issues', :locals => {:query => query, :issues => issues, :block => block}
+ end
+
def render_issueswatched_block(block, settings)
query = IssueQuery.new(:name => l(:label_watched_issues), :user => User.current)
query.add_filter 'watcher_id', '=', ['me']