FabulaVotes/templates
trotFunky 207ce6c1d2 templates: Check vote against truth id, not number
I made a choice to only log confirmed votes : there is no blank vote in the database.
This means that when fetching a user's vote, if they have not voted for everyone
there will be votes missing.
As this is sent to the templating engine via a Vector, the ordering of the votes
will be incorrect : all existing votes will follow each other, and there will be
missing votes at the end.

Update the select logic in the truth template to account for that by checking
the truth_id directly, rather than via the index of the array. (O(N²)...)
Remove 'has_vote' as this is not useful anymore.
2024-07-25 23:30:02 +01:00
..
editable_truth.tera v1.1: Add weekly introductions 2024-07-23 21:51:51 +01:00
index.html.tera templates: Check vote against truth id, not number 2024-07-25 23:30:02 +01:00
truth.html.tera templates: Check vote against truth id, not number 2024-07-25 23:30:02 +01:00
truth_editor.html.tera v1.1: Add weekly introductions 2024-07-23 21:51:51 +01:00