summaryrefslogtreecommitdiffstats
path: root/bitbake/lib
diff options
context:
space:
mode:
authorAlexandru DAMIAN <alexandru.damian@intel.com>2015-08-12 11:33:43 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-08-17 08:48:27 +0100
commitc9d1cb299ac67aa71653f1f8d978b2b07b790965 (patch)
tree4657a08a046dbcbc5ca31b5b3fa6d2e34101ded0 /bitbake/lib
parent8ab2101166090d1478456db9cab7014f74b0ab03 (diff)
downloadpoky-c9d1cb299ac67aa71653f1f8d978b2b07b790965.tar.gz
bitbake: toaster: fix invalid fields in the package details page
This patch safeguards referencing invalid fields in the project details template, and fixes errors thrown in the page. [YOCTO #7992] (Bitbake rev: 64b30bc15e87f81eddac79872b2282c435827ad0) Signed-off-by: Alexandru DAMIAN <alexandru.damian@intel.com> Signed-off-by: Belen Barros Pena <belen.barros.pena@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r--bitbake/lib/toaster/toastergui/templates/package_included_reverse_dependencies.html2
-rw-r--r--bitbake/lib/toaster/toastergui/templates/tablesort.html4
2 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/package_included_reverse_dependencies.html b/bitbake/lib/toaster/toastergui/templates/package_included_reverse_dependencies.html
index 4ba472f2d6..5cc8b47a60 100644
--- a/bitbake/lib/toaster/toastergui/templates/package_included_reverse_dependencies.html
+++ b/bitbake/lib/toaster/toastergui/templates/package_included_reverse_dependencies.html
@@ -23,7 +23,7 @@
23 {% include "tablesort.html" %} 23 {% include "tablesort.html" %}
24 <tbody> 24 <tbody>
25 {% for reverse_dep in objects %} 25 {% for reverse_dep in objects %}
26 <tr {{reverse_dep.size|format_vpackage_rowclass}} > 26 <tr {% if reverse_dep.size %}{{reverse_dep.size|format_vpackage_rowclass}}{%endif%} >
27 {% if reverse_dep.size != -1 %} 27 {% if reverse_dep.size != -1 %}
28 <td> 28 <td>
29 <a href="{% url 'package_included_detail' build.id target.id reverse_dep.package_id %}"> 29 <a href="{% url 'package_included_detail' build.id target.id reverse_dep.package_id %}">
diff --git a/bitbake/lib/toaster/toastergui/templates/tablesort.html b/bitbake/lib/toaster/toastergui/templates/tablesort.html
index bf311b6edd..362474293e 100644
--- a/bitbake/lib/toaster/toastergui/templates/tablesort.html
+++ b/bitbake/lib/toaster/toastergui/templates/tablesort.html
@@ -5,7 +5,7 @@
5 <thead> 5 <thead>
6 <tr> 6 <tr>
7 {% for tc in tablecols %} 7 {% for tc in tablecols %}
8 <th class="{{tc.dclass}} {{tc.clclass}}"> 8 <th class="{%if tc.dclass%}{{tc.dclass}}{%endif%} {%if tc.clclass%}{{tc.clclass}}{%endif%}">
9 {%if tc.qhelp%}<i class="icon-question-sign get-help" title="{{tc.qhelp}}"></i>{%endif%} 9 {%if tc.qhelp%}<i class="icon-question-sign get-help" title="{{tc.qhelp}}"></i>{%endif%}
10 {{tc.name}} 10 {{tc.name}}
11 </th> 11 </th>
@@ -18,7 +18,7 @@
18 <!-- Table header row; generated from "tablecols" entry in the context dict --> 18 <!-- Table header row; generated from "tablecols" entry in the context dict -->
19 <tr> 19 <tr>
20 {% for tc in tablecols %} 20 {% for tc in tablecols %}
21 <th class="{{tc.dclass}} {{tc.clclass}}"> 21 <th class="{%if tc.dclass%}{{tc.dclass}}{%endif%} {%if tc.clclass%}{{tc.clclass}}{%endif%}">
22 {%if tc.qhelp%}<i class="icon-question-sign get-help" title="{{tc.qhelp}}"></i>{%endif%} 22 {%if tc.qhelp%}<i class="icon-question-sign get-help" title="{{tc.qhelp}}"></i>{%endif%}
23 {%if tc.orderfield%} 23 {%if tc.orderfield%}
24 <a {%if tc.ordericon%} class="sorted" {%endif%} 24 <a {%if tc.ordericon%} class="sorted" {%endif%}