Skip to content

Commit

Permalink
Fix Layer Detail View for QGIS Server
Browse files Browse the repository at this point in the history
  • Loading branch information
lucernae committed Dec 4, 2017
1 parent 5252b37 commit 897418c
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions geonode/layers/templates/layers/layer_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -398,16 +398,14 @@ <h4 class="modal-title" id="myModalLabel">{% trans "Download Layer" %}</h4>
</div>
<hr id="hr_filter_layer" />
</div>
{% if links %}
<li>
<h4>{% trans "Pick your download format:" %}</h4>
<ul>
{% for link in links_download %}
<li><a href="{{ link.url }}" target="_blank" id="{{ link.name | slugify }}" class="urls">{% trans link.name %}</a></li>
{% endfor %}
</ul>
</li>
{% endif %}
<li>
<h4>{% trans "Pick your download format:" %}</h4>
<ul>
{% for link in links_download %}
<li><a href="{{ link.url }}" target="_blank" id="{{ link.name | slugify }}" class="urls">{% trans link.name %}</a></li>
{% endfor %}
</ul>
</li>
</div>
{% endif %}
</div>
Expand All @@ -424,6 +422,10 @@ <h4>{% trans "Pick your download format:" %}</h4>
{% get_obj_perms request.user for resource.layer as "layer_perms" %}
{% endif %}

{% if OGC_SERVER.default.BACKEND == 'geonode.qgis_server' %}
{% get_obj_perms request.user for resource.layer as "layer_perms" %}
{% endif %}

<li class="list-group-item">
<a href="{% url "layer_metadata_detail" resource.alternate %}">
<button class="btn btn-primary btn-md btn-block">{% trans "Metadata Detail" %}</button>
Expand Down Expand Up @@ -465,6 +467,7 @@ <h4>{% trans "Styles" %}</h4>
</div>
{% endif %}
{% elif OGC_SERVER.default.BACKEND == 'geonode.qgis_server' and not resource.service %}

{% if "change_layer_style" in layer_perms and preview == 'leaflet' %}
<div class="col-sm-3">
<i class="fa fa-tint fa-3x"></i>
Expand Down

0 comments on commit 897418c

Please sign in to comment.