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>
This commit is contained in:
parent
8ab2101166
commit
c9d1cb299a
|
@ -23,7 +23,7 @@
|
|||
{% include "tablesort.html" %}
|
||||
<tbody>
|
||||
{% for reverse_dep in objects %}
|
||||
<tr {{reverse_dep.size|format_vpackage_rowclass}} >
|
||||
<tr {% if reverse_dep.size %}{{reverse_dep.size|format_vpackage_rowclass}}{%endif%} >
|
||||
{% if reverse_dep.size != -1 %}
|
||||
<td>
|
||||
<a href="{% url 'package_included_detail' build.id target.id reverse_dep.package_id %}">
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
<thead>
|
||||
<tr>
|
||||
{% for tc in tablecols %}
|
||||
<th class="{{tc.dclass}} {{tc.clclass}}">
|
||||
<th class="{%if tc.dclass%}{{tc.dclass}}{%endif%} {%if tc.clclass%}{{tc.clclass}}{%endif%}">
|
||||
{%if tc.qhelp%}<i class="icon-question-sign get-help" title="{{tc.qhelp}}"></i>{%endif%}
|
||||
{{tc.name}}
|
||||
</th>
|
||||
|
@ -18,7 +18,7 @@
|
|||
<!-- Table header row; generated from "tablecols" entry in the context dict -->
|
||||
<tr>
|
||||
{% for tc in tablecols %}
|
||||
<th class="{{tc.dclass}} {{tc.clclass}}">
|
||||
<th class="{%if tc.dclass%}{{tc.dclass}}{%endif%} {%if tc.clclass%}{{tc.clclass}}{%endif%}">
|
||||
{%if tc.qhelp%}<i class="icon-question-sign get-help" title="{{tc.qhelp}}"></i>{%endif%}
|
||||
{%if tc.orderfield%}
|
||||
<a {%if tc.ordericon%} class="sorted" {%endif%}
|
||||
|
|
Loading…
Reference in New Issue