From 62b7d1b287ece7596c54829b20a6e079ef09e3f5 Mon Sep 17 00:00:00 2001 From: Jakob Kramer Date: Sat, 7 Jul 2012 21:37:46 +0200 Subject: [PATCH] put attachments into sidebar also added {% trans %} tags --- .../mediagoblin/user_pages/media.html | 48 ++++++++++--------- 1 file changed, 26 insertions(+), 22 deletions(-) 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 %} -- 2.25.1