bitbake: toaster: Sort packages and dependencies in recipe.html
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. (Bitbake rev: ff6c448c7b5bc7bf4fe75e15e66c4e02f07f7618) Signed-off-by: Belen Barros Pena <belen.barros.pena@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
5a5e7c0a68
commit
48a93d6452
|
@ -154,7 +154,7 @@
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
||||||
{% for package in packages %}
|
{% for package in packages|dictsort:"name" %}
|
||||||
|
|
||||||
<tr>
|
<tr>
|
||||||
<td><a href="{% url "package_built_detail" build.pk package.pk %}">{{package.name}}</a></td>
|
<td><a href="{% url "package_built_detail" build.pk package.pk %}">{{package.name}}</a></td>
|
||||||
|
@ -188,7 +188,7 @@
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
||||||
{% for rr in object.r_dependencies_recipe.all %}
|
{% for rr in object.r_dependencies_recipe.all|dictsort:"depends_on.name" %}
|
||||||
<tr>
|
<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.name}}</a></td>
|
||||||
<td><a href="{% url "recipe" build.pk rr.depends_on.pk %}">{{rr.depends_on.version}}</a></td>
|
<td><a href="{% url "recipe" build.pk rr.depends_on.pk %}">{{rr.depends_on.version}}</a></td>
|
||||||
|
@ -220,7 +220,7 @@
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
|
||||||
{% for rr in object.r_dependencies_depends.all %}
|
{% for rr in object.r_dependencies_depends.all|dictsort:"recipe.name" %}
|
||||||
<tr>
|
<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.name}}</a></td>
|
||||||
<td><a href="{% url "recipe" build.pk rr.recipe.pk %}">{{rr.recipe.version}}</a></td>
|
<td><a href="{% url "recipe" build.pk rr.recipe.pk %}">{{rr.recipe.version}}</a></td>
|
||||||
|
|
Loading…
Reference in New Issue