aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Wood <michael.g.wood@intel.com>2015-02-11 11:34:47 +0000
committerMichael Wood <michael.g.wood@intel.com>2015-02-11 11:34:47 +0000
commita9266f58351c32270dbe5d3905be84a24acbdc20 (patch)
tree727cb3f5d580979d705bf2e35e88ebe724ebde1e
parent114a1f24919de530d0c15237fc5817b416cfc2f9 (diff)
downloaderror-report-web-a9266f58351c32270dbe5d3905be84a24acbdc20.tar.gz
error-report-web-a9266f58351c32270dbe5d3905be84a24acbdc20.tar.bz2
error-report-web-a9266f58351c32270dbe5d3905be84a24acbdc20.zip
latest-errors: Swap the default sort mode to ascending
As most of the fields are alphabetic make the default sort a-z rather than the "logical" descending. Signed-off-by: Michael Wood <michael.g.wood@intel.com>
-rw-r--r--templates/latest-errors.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/latest-errors.html b/templates/latest-errors.html
index 2acb02b..a532d7c 100644
--- a/templates/latest-errors.html
+++ b/templates/latest-errors.html
@@ -72,10 +72,10 @@
{% if request.GET.order_by == "-"|add:col.field %}
<a href="#" class="sort-col sorted" data-order-by="{{col.field}}" >{{col.name}}</a>
- <span class="sorting-arrows" style="visibility: visible">&#9660</span>
+ <span class="sorting-arrows" style="visibility: visible">&#9650</span>
{% else %}
<a href="#" class="sort-col sorted" data-order-by="-{{col.field}}" >{{col.name}}</a>
- <span class="sorting-arrows" style="visibility: visible">&#9650</span>
+ <span class="sorting-arrows" style="visibility: visible">&#9660</span>
{% endif %}
{% else %}
{# default case is sorted by submitted_on #}
@@ -86,7 +86,7 @@
<span class="sorting-arrows" style="visibility: visible">&#9660</span>
{% else %}
- <a href="#" class="sort-col" data-order-by="-{{col.field}}" >{{col.name}}</a>
+ <a href="#" class="sort-col" data-order-by="{{col.field}}" >{{col.name}}</a>
<span class="sorting-arrows">&#9660</span>
{% endif %}