From: Jakob Kramer Date: Sat, 7 Jul 2012 19:37:46 +0000 (+0200) Subject: put attachments into sidebar X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=62b7d1b287ece7596c54829b20a6e079ef09e3f5;p=mediagoblin.git put attachments into sidebar also added {% trans %} tags --- diff --git a/mediagoblin/templates/mediagoblin/user_pages/media.html b/mediagoblin/templates/mediagoblin/user_pages/media.html index 21990442..15ac4988 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/media.html +++ b/mediagoblin/templates/mediagoblin/user_pages/media.html @@ -93,28 +93,6 @@ {% autoescape False %}

{{ media.description_html }}

{% endautoescape %} - {% if media.attachment_files|count %} -

Attachments

- - {% endif %} - {% if app_config['allow_attachments'] - and request.user - and (media.uploader == request.user._id - or request.user.is_admin) %} -

- Add attachment -

- {% endif %} {% if comments %} {% trans %}Attachments{% endtrans %} + + {% endif %} + {% if app_config['allow_attachments'] + and request.user + and (media.uploader == request.user._id + or request.user.is_admin) %} + {% if not media.attachment_files|count %} +

{% trans %}Attachments{% endtrans %}

+ {% endif %} +

+ {% trans %}Add attachment{% endtrans %} +

+ {% endif %} + {% block mediagoblin_sidebar %} {% endblock %}