bitbake: toaster: layerdetails Don't show None type in description/summary
When the result for the summary or description is None don't output the result as the string version of None, use an empty value so that the "Not set" mechanism works. [YOCTO #7244] (Bitbake rev: 34397e585df0fc04ea53046347856e8cddb8f8e1) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
64fc177299
commit
91e900f636
|
@ -453,7 +453,7 @@
|
|||
</dt>
|
||||
<dd>
|
||||
<span class="muted" style="display:none">Not set</span>
|
||||
<span class="current-value">{{layerversion.layer.summary}}</span>
|
||||
<span class="current-value">{{layerversion.layer.summary|default_if_none:''}}</span>
|
||||
<form style="display:none; margin-bottom:20px">
|
||||
<textarea class="span12" rows="2">{% if layerversion.layer.summary %}{{layerversion.layer.summary}}{% endif %}</textarea>
|
||||
<button class="btn change-btn" data-layer-prop="summary" type="button">Save</button>
|
||||
|
@ -467,7 +467,7 @@
|
|||
</dt>
|
||||
<dd>
|
||||
<span class="muted" style="display:none">Not set</span>
|
||||
<span class="current-value">{{layerversion.layer.description}}</span>
|
||||
<span class="current-value">{{layerversion.layer.description|default_if_none:''}}</span>
|
||||
<form style="display:none; margin-bottom:20px">
|
||||
<textarea class="span12" rows="6">{% if layerversion.layer.description %}{{layerversion.layer.description}}{% endif %}</textarea>
|
||||
<button class="btn change-btn" data-layer-prop="description" type="button" >Save</button>
|
||||
|
|
Loading…
Reference in New Issue