[PATCH 43/51] series: Default to displaying series ordered by submission date

Damien Lespiau damien.lespiau at intel.com
Sat Sep 12 01:55:16 AEST 2015


Signed-off-by: Damien Lespiau <damien.lespiau at intel.com>
---
 htdocs/js/patchwork.js                    | 2 +-
 patchwork/templates/patchwork/series.html | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/htdocs/js/patchwork.js b/htdocs/js/patchwork.js
index 9a3d5c1..119bb6f 100644
--- a/htdocs/js/patchwork.js
+++ b/htdocs/js/patchwork.js
@@ -90,7 +90,7 @@ var pw = (function() {
         var url;
 
         if (typeof url == 'undefined')
-            url = '/api/1.0/projects/' + ctx.project + '/series/';
+            url = '/api/1.0/projects/' + ctx.project + '/series/?ordering=-submitted';
 
         table.bind('dynatable:preinit', function(e, dynatable) {
             dynatable.utility.textTransform.PatchworkSeries = function(text) {
diff --git a/patchwork/templates/patchwork/series.html b/patchwork/templates/patchwork/series.html
index 0691354..be51768 100644
--- a/patchwork/templates/patchwork/series.html
+++ b/patchwork/templates/patchwork/series.html
@@ -31,7 +31,7 @@ $(function () {
 </script>
 {% endblock %}
 {% block breadcrumb %}
-<a href="{% url 'series_list' project=project.linkname %}">{{ project.linkname }} series</a> → {{ series.name }}
+<a href="{% url 'series_list' project=project.linkname %}?ordering=-submitted">{{ project.linkname }} series</a> → {{ series.name }}
 {% endblock %}
 
 {% block body %}
-- 
2.1.0



More information about the Patchwork mailing list