fix for bug when comments are disabled, link attribute is never closed
authorRodney Ewing <ewing.rj@gmail.com>
Tue, 14 May 2013 19:36:13 +0000 (12:36 -0700)
committerRodney Ewing <ewing.rj@gmail.com>
Tue, 14 May 2013 19:36:13 +0000 (12:36 -0700)
mediagoblin/templates/mediagoblin/user_pages/media.html

index 667510d5b9f3099132ce0c1a4c01a9dea1d5f260..fa03c2dd81446eff5dde02c055fff464dd00bd97 100644 (file)
       <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,