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 %}
|
{% if not request.user %}
|
||||||
href="{{ request.urlgen('mediagoblin.auth.login') }}"
|
href="{{ request.urlgen('mediagoblin.auth.login') }}"
|
||||||
{% endif %}
|
{% endif %}
|
||||||
class="button_action" id="button_addcomment" title="Add a comment">
|
{% if app_config['allow_comments'] %}
|
||||||
{% trans %}Add a comment{% endtrans %}
|
class="button_action" id="button_addcomment" title="Add a comment">
|
||||||
|
{% trans %}Add a comment{% endtrans %}
|
||||||
|
{% endif %}
|
||||||
</a>
|
</a>
|
||||||
{% 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',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user