diff options
author | Rodney Ewing <ewing.rj@gmail.com> | 2013-05-14 12:36:13 -0700 |
---|---|---|
committer | Rodney Ewing <ewing.rj@gmail.com> | 2013-05-14 12:36:13 -0700 |
commit | 7c41b9d72117bd22e961eb57e1f3c8d9ee5f5687 (patch) | |
tree | 31d59c56620a8d796d0c89069589cdccf81af5f8 | |
parent | 76f0fb8ccaa06614fc7fcf49e62516297f189202 (diff) | |
download | mediagoblin-7c41b9d72117bd22e961eb57e1f3c8d9ee5f5687.tar.lz mediagoblin-7c41b9d72117bd22e961eb57e1f3c8d9ee5f5687.tar.xz mediagoblin-7c41b9d72117bd22e961eb57e1f3c8d9ee5f5687.zip |
fix for bug when comments are disabled, link attribute is never closed
-rw-r--r-- | mediagoblin/templates/mediagoblin/user_pages/media.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/templates/mediagoblin/user_pages/media.html b/mediagoblin/templates/mediagoblin/user_pages/media.html index 667510d5..fa03c2dd 100644 --- a/mediagoblin/templates/mediagoblin/user_pages/media.html +++ b/mediagoblin/templates/mediagoblin/user_pages/media.html @@ -86,15 +86,15 @@ <p>{{ media.description_html }}</p> {% endautoescape %} {% if comments %} + {% if app_config['allow_comments'] %} <a {% if not request.user %} href="{{ request.urlgen('mediagoblin.auth.login') }}" {% endif %} - {% if app_config['allow_comments'] %} class="button_action" id="button_addcomment" title="Add a comment"> {% trans %}Add a comment{% endtrans %} - {% endif %} </a> + {% endif %} {% if request.user %} <form action="{{ request.urlgen('mediagoblin.user_pages.media_post_comment', user= media.get_uploader.username, |