From d73910ab023fe2fbcb922dc4d60cd5111e3b972c Mon Sep 17 00:00:00 2001 From: Mark Hoekveen Date: Thu, 22 Feb 2024 23:19:12 +0100 Subject: [PATCH] vote undo todo: only accept undo endpoint when allowed --- playlist/static/img/undo.png | Bin 0 -> 239 bytes playlist/static/style.css | 40 ++++++++++++++++++++++++++++------- playlist/templates/Vote.html | 39 ++++++++-------------------------- playlist/templates/head.html | 1 - playlist/urls.py | 1 + playlist/views.py | 30 +++++++++++++++++--------- 6 files changed, 62 insertions(+), 49 deletions(-) create mode 100644 playlist/static/img/undo.png diff --git a/playlist/static/img/undo.png b/playlist/static/img/undo.png new file mode 100644 index 0000000000000000000000000000000000000000..77d551243a4ea11debfab53e88cf426b3bcc2fe2 GIT binary patch literal 239 zcmeAS@N?(olHy`uVBq!ia0vp^3LwnF3?v&v(vJfv#^NA%C&rs6b?Si}&H|6fVg?3o zVGw3ym^DWNC@31>6XFV_+uGV5KYo1X%o!FImQ9;B{r~^}nQjcoB=(XZzhDL+9|)G# zFZ&G?O7L`X45^rtoFMV0AuvE-s{WECZy268{8+ZoQL%uLolWtwfOvTD454Ep$DRnV zv$?f6%#!Zt)mgxEsZV7BOPUg=hV⏵️ -
-
- Dit vind ik een leuk nummer! - - - - - -
-
- Hoeveel sterren geef jij dit nummer? + Hoeveel sterren geef jij dit?
+ {% if undo %} + +
+ {% csrf_token %} +

Je hebt {{undo.track}} een score van {{undo.points | add:3}} sterren gegeven!

+ +
+ {% endif %}