Browse Source

show edit button only for superuser

pull/37/head
Bramble Xu 6 years ago
parent
commit
5444705170
1 changed files with 2 additions and 0 deletions
  1. 2
      app/server/templates/annotation/annotation_base.html

2
app/server/templates/annotation/annotation_base.html

@ -6,12 +6,14 @@
<script src="https://unpkg.com/lodash@4.16.0"></script>
{% endblock %}
{% block navigation %}
{% if user.is_superuser %}
<a class="navbar-item" href="{% url 'dataset' view.kwargs.project_id %}">
<span class="icon">
<i class="fas fa-edit"></i>
</span>
<b>Edit Data</b>
</a>
{% endif %}
{% endblock %}
{% block content %}
<div class="columns" id="mail-app" v-cloak>

Loading…
Cancel
Save