X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=mediagoblin%2Ftemplates%2Fmediagoblin%2Fuser_pages%2Fmedia.html;h=81e5013e88e812ab04caa2d696e168e4a7f1a4d6;hb=56c4ad89ebef32bd5a40c00d987811ce4501ce22;hp=08e9d8ea1d1ebed858e97a3a5a3c3ac62090b25b;hpb=744f1c83b9c94a82612c981ec56782f3db457357;p=mediagoblin.git diff --git a/mediagoblin/templates/mediagoblin/user_pages/media.html b/mediagoblin/templates/mediagoblin/user_pages/media.html index 08e9d8ea..81e5013e 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/media.html +++ b/mediagoblin/templates/mediagoblin/user_pages/media.html @@ -72,7 +72,7 @@ {% if request.user and (media.uploader == request.user.id or - request.user.is_admin) %} + request.user.has_privilege('admin')) %} {% set edit_url = request.urlgen('mediagoblin.edit.edit_media', user= media.get_uploader.username, media_id=media.id) %} @@ -81,19 +81,23 @@ user= media.get_uploader.username, media_id=media.id) %} {% trans %}Delete{% endtrans %} + {% endif %} {% autoescape False %}
{{ media.description_html }}
{% endautoescape %} - {% if comments %} - {% if app_config['allow_comments'] and auth %} + {% if comments and request.user and request.user.has_privilege('commenter') %} + {% if app_config['allow_comments'] %} {% trans %}Add a comment{% endtrans %} + {% include "mediagoblin/utils/comment-subscription.html" %} + {% endif %} {% if request.user %} {{ csrf_token }} + + + {% endif %}