From 631605ed0ef1d94dafadb353cd7291fcd3da3a48 Mon Sep 17 00:00:00 2001 From: Gokuldevx Date: Fri, 22 Aug 2025 05:18:39 +0530 Subject: [PATCH] vote csrf & ajax --- civicfix/core/templates/core/index.html | 89 ++++++++++++++++++++++++- 1 file changed, 86 insertions(+), 3 deletions(-) diff --git a/civicfix/core/templates/core/index.html b/civicfix/core/templates/core/index.html index d60231d..42f7d5a 100644 --- a/civicfix/core/templates/core/index.html +++ b/civicfix/core/templates/core/index.html @@ -10,7 +10,7 @@ {% if user.is_authenticated %} Report an Issue {% else %} - Report an Issue + Report an Issue {% endif %} Learn More @@ -126,7 +126,7 @@

Recently Reported Issues

{% if user.is_authenticated %} - View All Issues + View All Issues {% else %} View All Issues {% endif %} @@ -148,7 +148,22 @@

{{ issue.description|truncatewords:15 }}

{{ issue.location|truncatewords:2 }} - {{ issue.votes.count|default:"0" }} + + +
+ {% if user.is_authenticated %} + + {% else %} + + + {{ issue.vote_count }} + + {% endif %} +
+{% endblock %} + +{% block extra_js %} + + + {% endblock %} \ No newline at end of file