Do not render 'Add a comment' button if comments are disabled.

This commit is contained in:
David Thompson 2013-04-13 09:40:34 -04:00
parent 20f8f50ccb
commit aa4f958a40

View File

@ -90,8 +90,10 @@
{% 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>
{% if request.user %}
<form action="{{ request.urlgen('mediagoblin.user_pages.media_post_comment',