diff --git a/templates/truth.html.tera b/templates/truth.html.tera index dca3ffd..14df3e5 100644 --- a/templates/truth.html.tera +++ b/templates/truth.html.tera @@ -1,3 +1,9 @@ +{%- set is_disabled = "" -%} +{# If we are not during the active week, prevent changing vote but not sending a missing one. #} +{%- if week_data.is_last_week != true and user.votes | filter(attribute="truth_id", value=truth.id) -%} + {%- set is_disabled = "disabled" -%} +{%- endif -%} +
{{ truth.rendered_text | safe }}
@@ -8,10 +14,10 @@ Tu l'as fait :) {%- else -%} Qui l'a fait ? -