forked from MarseyWorld/MarseyWorld
Fix voting when FEATURES['AWARDS'] false.
Apparently we stick the voting javascript in awards_modal.js, which is included with awards_modal.html. While this makes sense as a proxy for logged-in post-actions, it unfortunately means disabling inclusion of the (otherwise unused) modal templates when FEATURES['AWARDS'] is disabled breaks other things.master
parent
ed40fd9d76
commit
f418bf4333
|
@ -8,7 +8,7 @@
|
|||
</script>
|
||||
{% endif %}
|
||||
|
||||
{% if v and FEATURES['AWARDS'] %}
|
||||
{% if v %}
|
||||
{% include "award_modal.html" %}
|
||||
{% endif %}
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
{%- from 'util/assetcache.html' import asset, asset_siteimg with context -%}
|
||||
{%- import 'util/helpers.html' as help -%}
|
||||
|
||||
{% if v and FEATURES['AWARDS'] %}
|
||||
{% if v %}
|
||||
{% include "award_modal.html" %}
|
||||
{% endif %}
|
||||
|
||||
|
|
Loading…
Reference in New Issue