diff options
Diffstat (limited to 'import-layers/yocto-poky/bitbake/lib/toaster/toastergui/templates/layer_btn.html')
-rw-r--r-- | import-layers/yocto-poky/bitbake/lib/toaster/toastergui/templates/layer_btn.html | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/import-layers/yocto-poky/bitbake/lib/toaster/toastergui/templates/layer_btn.html b/import-layers/yocto-poky/bitbake/lib/toaster/toastergui/templates/layer_btn.html index b2f73eba7a..1580991a16 100644 --- a/import-layers/yocto-poky/bitbake/lib/toaster/toastergui/templates/layer_btn.html +++ b/import-layers/yocto-poky/bitbake/lib/toaster/toastergui/templates/layer_btn.html @@ -1,4 +1,9 @@ -<a class="btn btn-danger btn-block layer-exists-{{data.pk}} layerbtn" data-layer='{ "id": {{data.pk}}, "name": "{{data.layer.name}}", "layerdetailurl": "{%url 'layerdetails' extra.pid data.pk%}"}' data-directive="remove" +<a class="btn btn-danger btn-block layer-exists-{{data.pk}} layerbtn" data-layer='{ + "id": {{data.pk}}, + "name": "{{data.layer.name}}", + "xhrLayerUrl": "{% url "xhr_layer" extra.pid data.pk %}", + "layerdetailurl": "{% url 'layerdetails' extra.pid data.pk %}" + }' data-directive="remove" {% if data.pk not in extra.current_layers %} style="display:none;" {% endif %} @@ -6,7 +11,12 @@ <span class="glyphicon glyphicon-trash"></span> Remove layer </a> -<a class="btn btn-default btn-block layer-add-{{data.pk}} layerbtn" data-layer='{ "id": {{data.pk}}, "name": "{{data.layer.name}}", "layerdetailurl": "{%url 'layerdetails' extra.pid data.pk%}"}' data-directive="add" +<a class="btn btn-default btn-block layer-add-{{data.pk}} layerbtn" + data-layer='{ "id": {{data.pk}}, + "name": "{{data.layer.name}}", + "xhrLayerUrl": "{% url "xhr_layer" extra.pid data.pk %}", + "layerdetailurl": "{%url "layerdetails" extra.pid data.pk %}" + }' data-directive="add" {% if data.pk in extra.current_layers %} style="display:none;" {% endif %} @@ -14,4 +24,3 @@ <span class="glyphicon glyphicon-plus"></span> Add layer </a> - |