diff options
author | Michael Wood <michael.g.wood@intel.com> | 2015-02-03 17:48:45 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-02-10 23:07:50 +0000 |
commit | 50719afbc2f3484173fa0a2acfda9ece46894bcd (patch) | |
tree | af24bf705f79cb292382839816c8113ad4aab0d5 /bitbake | |
parent | 02b7704052df42004d3433ccb9ed7882d5b3efd6 (diff) | |
download | poky-50719afbc2f3484173fa0a2acfda9ece46894bcd.tar.gz |
bitbake: toaster: All machines Add layer name order by functions
Allow the layer name to be sorted alphabetically in the machines table.
Also fix the default ordering to be machine name
(Bitbake rev: 8fffd7b5fd53bd66ed7621595f57e2cae416e80d)
Signed-off-by: Michael Wood <michael.g.wood@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/machines.html | 2 | ||||
-rwxr-xr-x | bitbake/lib/toaster/toastergui/views.py | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/machines.html b/bitbake/lib/toaster/toastergui/templates/machines.html index 487d6b73c1..650c47bd66 100644 --- a/bitbake/lib/toaster/toastergui/templates/machines.html +++ b/bitbake/lib/toaster/toastergui/templates/machines.html | |||
@@ -31,7 +31,7 @@ | |||
31 | <div class="page-header"> | 31 | <div class="page-header"> |
32 | <h1> | 32 | <h1> |
33 | All machines | 33 | All machines |
34 | <i class="icon-question-sign get-help heading-help" title="This page lists all the machines compatible with Yocto Project 1.7 'Dxxxx' that Toaster knows about. They include community-created targets suitable for use on top of OpenEmbedded Core and any targets you have imported"></i> | 34 | <i class="icon-question-sign get-help heading-help" title="This page lists all the machines compatible with the current project that Toaster knows about. They include community-created targets suitable for use on top of OpenEmbedded Core and any targets you have imported"></i> |
35 | </h1> | 35 | </h1> |
36 | </div> | 36 | </div> |
37 | 37 | ||
diff --git a/bitbake/lib/toaster/toastergui/views.py b/bitbake/lib/toaster/toastergui/views.py index c89b67bcd1..2e52d2bff9 100755 --- a/bitbake/lib/toaster/toastergui/views.py +++ b/bitbake/lib/toaster/toastergui/views.py | |||
@@ -2777,7 +2777,7 @@ if toastermain.settings.MANAGED: | |||
2777 | # define here what parameters the view needs in the GET portion in order to | 2777 | # define here what parameters the view needs in the GET portion in order to |
2778 | # be able to display something. 'count' and 'page' are mandatory for all views | 2778 | # be able to display something. 'count' and 'page' are mandatory for all views |
2779 | # that use paginators. | 2779 | # that use paginators. |
2780 | (pagesize, orderby) = _get_parameters_values(request, 10, 'updated:+') | 2780 | (pagesize, orderby) = _get_parameters_values(request, 10, 'name:+') |
2781 | mandatory_parameters = { 'count': pagesize, 'page' : 1, 'orderby' : orderby }; | 2781 | mandatory_parameters = { 'count': pagesize, 'page' : 1, 'orderby' : orderby }; |
2782 | retval = _verify_parameters( request.GET, mandatory_parameters ) | 2782 | retval = _verify_parameters( request.GET, mandatory_parameters ) |
2783 | if retval: | 2783 | if retval: |
@@ -2815,6 +2815,8 @@ if toastermain.settings.MANAGED: | |||
2815 | }, | 2815 | }, |
2816 | { 'name': 'Layer', | 2816 | { 'name': 'Layer', |
2817 | 'clclass': 'layer', | 2817 | 'clclass': 'layer', |
2818 | 'orderfield': _get_toggle_order(request, "layer_version__layer__name"), | ||
2819 | 'ordericon' : _get_toggle_order_icon(request, "layer_version__layer__name"), | ||
2818 | }, | 2820 | }, |
2819 | { 'name': 'Layer source', | 2821 | { 'name': 'Layer source', |
2820 | 'clclass': 'source', | 2822 | 'clclass': 'source', |