mirror of
https://git.yoctoproject.org/poky
synced 2026-02-09 10:13:03 +01:00
Add the ability to select a distro in the project page, based on values from the Layer Index. Add a distro selection page with the add layer feature, based on the add machine page. [YOCTO #10632] (Bitbake rev: a156a4eff67cdc3943494f5be72b96e3db656250) Signed-off-by: David Reyna <David.Reyna@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
21 lines
957 B
HTML
21 lines
957 B
HTML
<a href="{% url 'project' extra.pid %}?setDistro={{data.name}}" class="btn btn-default btn-block layer-exists-{{data.layer_version.id}}"
|
|
{% if data.layer_version.pk not in extra.current_layers %}
|
|
style="display:none;"
|
|
{% endif %}>
|
|
Set distro</a>
|
|
<a class="btn btn-default btn-block layerbtn layer-add-{{data.layer_version.id}}" data-layer='{
|
|
"id": {{data.layer_version.id}},
|
|
"name": "{{data.layer_version.layer.name}}",
|
|
"xhrLayerUrl": "{% url "xhr_layer" extra.pid data.pk %}",
|
|
"layerdetailurl": "{%url 'layerdetails' extra.pid data.layer_version.id %}"
|
|
}' data-directive="add"
|
|
{% if data.layer_version.pk in extra.current_layers %}
|
|
style="display:none;"
|
|
{% endif %}
|
|
>
|
|
<span class="glyphicon glyphicon-plus"></span>
|
|
Add layer
|
|
<span class="glyphicon glyphicon-question-sign get-help" title="To select this distro, you must first add the {{data.layer_version.layer.name}} layer to your project"></i>
|
|
</a>
|
|
|