fix for bug when comments are disabled, link attribute is never closed

This commit is contained in:
Rodney Ewing 2013-05-14 12:36:13 -07:00
parent 76f0fb8cca
commit 7c41b9d721

View File

@ -86,15 +86,15 @@
<p>{{ media.description_html }}</p> <p>{{ media.description_html }}</p>
{% endautoescape %} {% endautoescape %}
{% if comments %} {% if comments %}
{% if app_config['allow_comments'] %}
<a <a
{% if not request.user %} {% if not request.user %}
href="{{ request.urlgen('mediagoblin.auth.login') }}" href="{{ request.urlgen('mediagoblin.auth.login') }}"
{% endif %} {% endif %}
{% if app_config['allow_comments'] %}
class="button_action" id="button_addcomment" title="Add a comment"> class="button_action" id="button_addcomment" title="Add a comment">
{% trans %}Add a comment{% endtrans %} {% trans %}Add a comment{% endtrans %}
{% endif %}
</a> </a>
{% endif %}
{% if request.user %} {% if request.user %}
<form action="{{ request.urlgen('mediagoblin.user_pages.media_post_comment', <form action="{{ request.urlgen('mediagoblin.user_pages.media_post_comment',
user= media.get_uploader.username, user= media.get_uploader.username,