diff options
Diffstat (limited to 'bitbake/lib/toaster/toastergui/templates/distro_btn.html')
-rw-r--r-- | bitbake/lib/toaster/toastergui/templates/distro_btn.html | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/toastergui/templates/distro_btn.html b/bitbake/lib/toaster/toastergui/templates/distro_btn.html new file mode 100644 index 0000000000..fac79472cc --- /dev/null +++ b/bitbake/lib/toaster/toastergui/templates/distro_btn.html | |||
@@ -0,0 +1,20 @@ | |||
1 | <a href="{% url 'project' extra.pid %}?setDistro={{data.name}}" class="btn btn-default btn-block layer-exists-{{data.layer_version.id}}" | ||
2 | {% if data.layer_version.pk not in extra.current_layers %} | ||
3 | style="display:none;" | ||
4 | {% endif %}> | ||
5 | Set distro</a> | ||
6 | <a class="btn btn-default btn-block layerbtn layer-add-{{data.layer_version.id}}" data-layer='{ | ||
7 | "id": {{data.layer_version.id}}, | ||
8 | "name": "{{data.layer_version.layer.name}}", | ||
9 | "xhrLayerUrl": "{% url "xhr_layer" extra.pid data.pk %}", | ||
10 | "layerdetailurl": "{%url 'layerdetails' extra.pid data.layer_version.id %}" | ||
11 | }' data-directive="add" | ||
12 | {% if data.layer_version.pk in extra.current_layers %} | ||
13 | style="display:none;" | ||
14 | {% endif %} | ||
15 | > | ||
16 | <span class="glyphicon glyphicon-plus"></span> | ||
17 | Add layer | ||
18 | <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> | ||
19 | </a> | ||
20 | |||