]> source.dussan.org Git - redmine.git/commitdiff
Set sort orders on 'View all issues' links on my page.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 17 Mar 2009 17:34:49 +0000 (17:34 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Tue, 17 Mar 2009 17:34:49 +0000 (17:34 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2598 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/views/my/blocks/_issuesassignedtome.rhtml
app/views/my/blocks/_issuesreportedbyme.rhtml
app/views/my/blocks/_issueswatched.rhtml

index 507a45be935d036069c596ae2ad548034b7e3afa..69814bb82e052ae7b33343d2aa79278d1213dd85 100644 (file)
@@ -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 %>
-<p class="small"><%= link_to l(:label_issue_view_all), :controller => 'issues', :action => 'index', :set_filter => 1, :assigned_to_id => 'me' %></p>
+<p class="small"><%= link_to l(:label_issue_view_all), :controller => 'issues',
+                                                                                                                                                                                                                        :action => 'index',
+                                                                                                                                                                                                                        :set_filter => 1,
+                                                                                                                                                                                                                        :assigned_to_id => 'me',
+                                                                                                                                                                                                                        :sort => 'priority:desc,updated_on:desc' %></p>
 <% end %>
 
 <% content_for :header_tags do %>
index b3f4954f442f0d5eca6a1747dc8663777c2a3924..be468d14085db2f2f074281d05b061ac89e64c5a 100644 (file)
@@ -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 %>
-<p class="small"><%= link_to l(:label_issue_view_all), :controller => 'issues', :action => 'index', :set_filter => 1, :status_id => '*', :author_id => 'me' %></p>
+<p class="small"><%= link_to l(:label_issue_view_all), :controller => 'issues',
+                                                                                                                                                                                                                        :action => 'index',
+                                                                                                                                                                                                                        :set_filter => 1,
+                                                                                                                                                                                                                        :status_id => '*',
+                                                                                                                                                                                                                        :author_id => 'me',
+                                                                                                                                                                                                                        :sort => 'updated_on:desc' %></p>
 <% end %>
 
 <% content_for :header_tags do %>
index 0abda616595531ceac57e10f3fef4e9a885d0727..37f96f1b8f1de8afe48cb17914cf93725334654f 100644 (file)
@@ -5,7 +5,12 @@
                                :limit => 10, \r
                                :conditions => ["#{Watcher.table_name}.user_id = ?", user.id],\r
                                :order => "#{Issue.table_name}.updated_on DESC") %>\r
+\r
 <%= render :partial => 'issues/list_simple', :locals => { :issues => watched_issues } %>\r
 <% if watched_issues.length > 0 %>\r
-<p class="small"><%= link_to l(:label_issue_view_all), :controller => 'issues', :action => 'index', :set_filter => 1, :watcher_id => 'me' %></p>\r
+<p class="small"><%= link_to l(:label_issue_view_all), :controller => 'issues',\r
+                                                                                                                                                                                                                        :action => 'index',\r
+                                                                                                                                                                                                                        :set_filter => 1,\r
+                                                                                                                                                                                                                        :watcher_id => 'me',\r
+                                                                                                                                                                                                                        :sort => 'updated_on:desc' %></p>\r
 <% end %>\r