From a5a67ccb545a7aeb85bedaf2b6197c7c56cf15e0 Mon Sep 17 00:00:00 2001 From: Jason McBrayer Date: Tue, 9 Jul 2019 20:26:52 -0400 Subject: [PATCH] View un-voted-in polls; can't vote in them just yet. --- brutaldon/templates/main/toot_partial.html | 1 + brutaldon/templates/polls/new_partial.html | 23 ++++++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 brutaldon/templates/polls/new_partial.html diff --git a/brutaldon/templates/main/toot_partial.html b/brutaldon/templates/main/toot_partial.html index 2995f5f..898c007 100644 --- a/brutaldon/templates/main/toot_partial.html +++ b/brutaldon/templates/main/toot_partial.html @@ -59,6 +59,7 @@ {% include "polls/completed_partial.html" with toot=toot %} {% else %} + {% include "polls/new_partial.html" with toot=toot %} {% endif %} {% endif %} diff --git a/brutaldon/templates/polls/new_partial.html b/brutaldon/templates/polls/new_partial.html new file mode 100644 index 0000000..8687cb5 --- /dev/null +++ b/brutaldon/templates/polls/new_partial.html @@ -0,0 +1,23 @@ +{% load sanitizer %} +{% load taglinks %} +{% load static %} + +
+ {% for option in toot.poll.options %} +
+ + {% if toot.poll.multiple %} + + {% else %} + + {% endif %} + + +
+ {% endfor %} + +