mirror of
https://git.yoctoproject.org/poky
synced 2026-03-25 01:02:22 +01:00
Make sure we send the current list of layers to the customise button to be able to know whether it should be set as an add layer button or a customise button on the New custom image page. (Bitbake rev: 5ddb35c98b609d85f97d482b54cabe3a2812afe6) Signed-off-by: Michael Wood <michael.g.wood@intel.com> Signed-off-by: brian avery <avery.brian@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
16 lines
662 B
HTML
16 lines
662 B
HTML
<button class="btn btn-block layer-exists-{{data.layer_version.pk}} customise-btn" data-recipe="{{data.pk}}"
|
|
{% if data.layer_version.pk not in extra.current_layers %}
|
|
style="display:none;"
|
|
{% endif %}
|
|
>
|
|
Customise
|
|
</button>
|
|
<button class="btn btn-block layer-add-{{data.layer_version.pk}} layerbtn" data-layer='{ "id": {{data.layer_version.pk}}, "name": "{{data.layer_version.layer.name}}", "layerdetailurl": "{%url 'layerdetails' extra.pid data.layer_version.pk%}"}' data-directive="add"
|
|
{% if data.layer_version.pk in extra.current_layers %}
|
|
style="display:none;"
|
|
{% endif %}
|
|
>
|
|
<i class="icon-plus"></i>
|
|
Add layer
|
|
</button>
|