]> git.parisson.com Git - telemeta.git/commitdiff
epub only for superuser
authorGuillaume Pellerin <yomguy@parisson.com>
Wed, 6 May 2015 21:16:52 +0000 (23:16 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Wed, 6 May 2015 21:16:52 +0000 (23:16 +0200)
telemeta/templates/telemeta/resource_detail.html

index e80d37ac33c9aca9fe87cc0bae1d13e88e41fac1..8e979cd7d575c892b2ab3d94fd2afbe495537030 100644 (file)
@@ -57,8 +57,8 @@ jQuery(document).ready(function(){
       </button>
     </a>
     {% endif %}
-    {% if type == 'corpus' %}
-    <a id="_add_to_playlist" href="{% url "telemeta-corpus-epub" resource.public_id %}">
+    {% if type == 'corpus' and user.is_superuser %}
+    <a id="_export_epub" href="{% url "telemeta-corpus-epub" resource.public_id %}">
       <button type="button" class="btn btn-default">
         <span class="glyphicon glyphicon-book"></span> {% trans "Epub" %}
       </button>