Do not render 'Add a comment' button if comments are disabled.
This commit is contained in:
parent
20f8f50ccb
commit
aa4f958a40
@ -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',
|
||||
|
Loading…
x
Reference in New Issue
Block a user