From d516d9d9e592a87a55a3a9d682de691f5fe7d17f Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Tue, 17 Mar 2009 17:34:49 +0000 Subject: [PATCH] Set sort orders on 'View all issues' links on my page. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2598 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/views/my/blocks/_issuesassignedtome.rhtml | 6 +++++- app/views/my/blocks/_issuesreportedbyme.rhtml | 7 ++++++- app/views/my/blocks/_issueswatched.rhtml | 7 ++++++- 3 files changed, 17 insertions(+), 3 deletions(-) diff --git a/app/views/my/blocks/_issuesassignedtome.rhtml b/app/views/my/blocks/_issuesassignedtome.rhtml index 507a45be9..69814bb82 100644 --- a/app/views/my/blocks/_issuesassignedtome.rhtml +++ b/app/views/my/blocks/_issuesassignedtome.rhtml @@ -7,7 +7,11 @@ :order => "#{Enumeration.table_name}.position DESC, #{Issue.table_name}.updated_on DESC") %> <%= render :partial => 'issues/list_simple', :locals => { :issues => assigned_issues } %> <% if assigned_issues.length > 0 %> -

<%= link_to l(:label_issue_view_all), :controller => 'issues', :action => 'index', :set_filter => 1, :assigned_to_id => 'me' %>

+

<%= link_to l(:label_issue_view_all), :controller => 'issues', + :action => 'index', + :set_filter => 1, + :assigned_to_id => 'me', + :sort => 'priority:desc,updated_on:desc' %>

<% end %> <% content_for :header_tags do %> diff --git a/app/views/my/blocks/_issuesreportedbyme.rhtml b/app/views/my/blocks/_issuesreportedbyme.rhtml index b3f4954f4..be468d140 100644 --- a/app/views/my/blocks/_issuesreportedbyme.rhtml +++ b/app/views/my/blocks/_issuesreportedbyme.rhtml @@ -7,7 +7,12 @@ :order => "#{Issue.table_name}.updated_on DESC") %> <%= render :partial => 'issues/list_simple', :locals => { :issues => reported_issues } %> <% if reported_issues.length > 0 %> -

<%= link_to l(:label_issue_view_all), :controller => 'issues', :action => 'index', :set_filter => 1, :status_id => '*', :author_id => 'me' %>

+

<%= link_to l(:label_issue_view_all), :controller => 'issues', + :action => 'index', + :set_filter => 1, + :status_id => '*', + :author_id => 'me', + :sort => 'updated_on:desc' %>

<% end %> <% content_for :header_tags do %> diff --git a/app/views/my/blocks/_issueswatched.rhtml b/app/views/my/blocks/_issueswatched.rhtml index 0abda6165..37f96f1b8 100644 --- a/app/views/my/blocks/_issueswatched.rhtml +++ b/app/views/my/blocks/_issueswatched.rhtml @@ -5,7 +5,12 @@ :limit => 10, :conditions => ["#{Watcher.table_name}.user_id = ?", user.id], :order => "#{Issue.table_name}.updated_on DESC") %> + <%= render :partial => 'issues/list_simple', :locals => { :issues => watched_issues } %> <% if watched_issues.length > 0 %> -

<%= link_to l(:label_issue_view_all), :controller => 'issues', :action => 'index', :set_filter => 1, :watcher_id => 'me' %>

+

<%= link_to l(:label_issue_view_all), :controller => 'issues', + :action => 'index', + :set_filter => 1, + :watcher_id => 'me', + :sort => 'updated_on:desc' %>

<% end %> -- 2.39.5