1<a href="{% url 'project' extra.pid %}?setMachine={{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>
6  Select machine</a>
7<a class="btn btn-default btn-block layerbtn
8layer-add-{{data.layer_version.id}}" data-layer='{ "id":
9   {{data.layer_version.id}}, "name":  "{{data.layer_version.layer.name}}",
10   "layerdetailurl": "{%url 'layerdetails' extra.pid data.layer_version.id %}",
11   "xhrLayerUrl": "{% url "xhr_layer" extra.pid data.layer_version.id %}"
12   }' data-directive="add"
13    {% if data.layer_version.pk in extra.current_layers %}
14    style="display:none;"
15    {% endif %}
16>
17  <span class="glyphicon glyphicon-plus"></span>
18  Add layer
19  <span class="glyphicon glyphicon-question-sign get-help" title="To select this machine, you must first add the {{data.layer_version.layer.name}} layer to your project"></i>
20</a>
21
22