diff mbox

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

Message ID 1441986924-26689-44-git-send-email-damien.lespiau@intel.com
State Superseded
Headers show

Commit Message

Damien Lespiau Sept. 11, 2015, 3:55 p.m. UTC
Signed-off-by: Damien Lespiau <damien.lespiau@intel.com>
---
 htdocs/js/patchwork.js                    | 2 +-
 patchwork/templates/patchwork/series.html | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
diff mbox

Patch

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> &#8594; {{ series.name }}
+<a href="{% url 'series_list' project=project.linkname %}?ordering=-submitted">{{ project.linkname }} series</a> &#8594; {{ series.name }}
 {% endblock %}
 
 {% block body %}