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

Loading…
Cancel
Save