]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
toaster: Sort packages and dependencies in recipe.html
authorBelen Barros Pena <belen.barros.pena@intel.com>
Wed, 19 Feb 2014 10:35:27 +0000 (10:35 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 9 Mar 2014 19:22:35 +0000 (12:22 -0700)
The tables in the Packages, Build dependencies and
Reverse build dependencies tabs in the recipe details
pages (template recipe.html) should be sorted by package
name and recipe name respectively.

This change adds the sorting.

Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com>
lib/toaster/toastergui/templates/recipe.html

index d2d6bc17732d71b9c580de62baac42091932a5f8..29c9728272d9c4de5cb8758e0f2f38321cc51b9c 100644 (file)
                 </thead>
                 <tbody>
 
-                    {% for package in packages %}
+                    {% for package in packages|dictsort:"name" %}
 
                     <tr>
                         <td><a href="{% url "package_built_detail" build.pk package.pk %}">{{package.name}}</a></td>
                 </thead>
                 <tbody>
 
-                    {% for rr in object.r_dependencies_recipe.all %}
+                    {% for rr in object.r_dependencies_recipe.all|dictsort:"depends_on.name" %}
                     <tr>
                         <td><a href="{% url "recipe" build.pk rr.depends_on.pk %}">{{rr.depends_on.name}}</a></td>
                         <td><a href="{% url "recipe" build.pk rr.depends_on.pk %}">{{rr.depends_on.version}}</a></td>
                 </thead>
                 <tbody>
 
-                    {% for rr in object.r_dependencies_depends.all %}
+                    {% for rr in object.r_dependencies_depends.all|dictsort:"recipe.name" %}
                     <tr>
                         <td><a href="{% url "recipe" build.pk rr.recipe.pk %}">{{rr.recipe.name}}</a></td>
                         <td><a href="{% url "recipe" build.pk rr.recipe.pk %}">{{rr.recipe.version}}</a></td>