Skip to content

Commit

Permalink
fix text in template to show edit button when user has edit permission
Browse files Browse the repository at this point in the history
  • Loading branch information
laura-barluzzi committed Mar 29, 2017
1 parent c4a37f6 commit 054e791
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cadasta/templates/spatial/location_detail.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<h2 class="short"><span>{% trans "Location" %} </span>{{ location.name }}</h2>
<div class="top-btn pull-right">
<!-- Action buttons -->
{% if is_allowed_update_location %}
{% if is_allowed_edit_location %}
<a class="btn btn-default btn-action btn-sm" href="{% url 'locations:edit' object.organization.slug object.slug location.id %}" title="{% trans 'Edit location' %}" aria-label="{% trans 'Edit location' %}"><span class="glyphicon glyphicon-pencil"></span></a>
{% endif %}
{% if is_allowed_delete_location %}
Expand Down

0 comments on commit 054e791

Please sign in to comment.