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
21