user/submission/comment: avoid queries if awards are disabled

This commit is contained in:
justcool393 2023-02-08 17:54:12 -06:00
parent 97c9300a6f
commit 026a9efe2b
5 changed files with 9 additions and 3 deletions

View file

@ -130,7 +130,7 @@
{{u.enemies_html | safe}}
{% endif %}
{% if u.received_awards %}
{% if FEATURES['AWARDS'] and u.received_awards %}
<div class="text-white rounded p-2 mb-3" style="background-color: rgba(50, 50, 50, 0.6); width: 30%;">
<p class="text-uppercase my-0" style="font-weight: bold; font-size: 12px;">Awards received</p>
{% for a in u.received_awards %}
@ -379,7 +379,7 @@
{{u.enemies_html | safe}}
{% endif %}
{% if u.received_awards %}
{% if FEATURES['AWARDS'] and u.received_awards %}
<div class="text-white rounded p-2 my-3 text-center" style="background-color: rgba(50, 50, 50, 0.6);">
<p class="text-uppercase my-0" style="font-weight: bold; font-size: 12px;">Awards received</p>
{% for a in u.received_awards %}