Skip to content

Commit

Permalink
Merge pull request #3943 from GeoNode/ISSUE_3942
Browse files Browse the repository at this point in the history
[Closes #3942] Make 'Edit data' link aware of the storeType
  • Loading branch information
Alessio Fabiani authored Sep 28, 2018
2 parents f1b1fd5 + 565c139 commit a20b0a0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion geonode/layers/templates/layers/layer_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ <h4>{% trans "Layer" %}</h4>
<a class="btn btn-default btn-block btn-xs" href="{% url "layer_replace" resource.service_typename %}">{% trans "Replace" %}</a>
{% endif %}
{% if resource.storeType == 'dataStore' and "change_layer_data" in layer_perms and OGC_SERVER.default.BACKEND == 'geonode.geoserver' %}
<a class="btn btn-default btn-block btn-xs" href="{% url "new_map" %}?layer={{resource.service_typename}}">{% trans "Edit data" %}</a>
<a class="btn btn-default btn-block btn-xs" href="{% url "new_map" %}?layer={{resource.service_typename}}&storeType={{resource.storeType}}">{% trans "Edit data" %}</a>
{% endif %}
{% if "delete_resourcebase" in perms_list %}
<a class="btn btn-danger btn-block btn-xs" href="{% url "layer_remove" resource.service_typename %}">{% trans "Remove" %}</a>
Expand Down

0 comments on commit a20b0a0

Please sign in to comment.