From 5f09df467a93423307f6071b6092f67694264f09 Mon Sep 17 00:00:00 2001 From: TLSM Date: Sun, 28 Aug 2022 12:12:35 -0400 Subject: [PATCH] Add uid data attributes to vote listing templates. As a stopgap instead of providing proper API access to vote listings, expose the user ID of a voter as a data attribute in the DOM so automated consumers can easily scrape user IDs of voters, rather than having to make additional requests to turn a username into a user ID. --- files/templates/poll_votes.html | 2 +- files/templates/votes.html | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/files/templates/poll_votes.html b/files/templates/poll_votes.html index 7805fcab7..2b8e508f0 100644 --- a/files/templates/poll_votes.html +++ b/files/templates/poll_votes.html @@ -29,7 +29,7 @@ - + {{vote.user.username}} diff --git a/files/templates/votes.html b/files/templates/votes.html index a19e40891..fbaad1b38 100644 --- a/files/templates/votes.html +++ b/files/templates/votes.html @@ -41,7 +41,7 @@ - + {{vote.user.username}} @@ -69,7 +69,7 @@ - + {{vote.user.username}}