1<a data-recipe-name="{{data.name}}" class="btn btn-default btn-block layer-exists-{{data.layer_version.pk}} set-default-recipe-btn" style="margin-top: 5px;
2  {% if data.layer_version.pk not in extra.current_layers %}
3    display:none;
4  {% endif %}"
5 >
6  Set recipe
7</a>
8<a class="btn btn-default btn-block layerbtn layer-add-{{data.layer_version.pk}}"
9  data-layer='{
10  "id": {{data.layer_version.pk}},
11  "name":  "{{data.layer_version.layer.name}}",
12  "layerdetailurl": "{%url "layerdetails" extra.pid data.layer_version.pk%}",
13   "xhrLayerUrl": "{% url "xhr_layer" extra.pid data.layer_version.pk %}"
14   }' data-directive="add"
15    {% if data.layer_version.pk in extra.current_layers %}
16     style="display:none;"
17    {% endif %}
18>
19  <span class="glyphicon glyphicon-plus"></span>
20  Add layer
21  <span class="glyphicon glyphicon-question-sign get-help" title="To set this
22      recipe you must first add the {{data.layer_version.layer.name}} layer to your project"></i>
23</a>
24