From 5cf728275cbc8582c683c2fbc324d2dc3b78c1fb Mon Sep 17 00:00:00 2001 From: Gokuldevx Date: Fri, 22 Aug 2025 06:11:32 +0530 Subject: [PATCH] minor update --- .../__pycache__/settings.cpython-313.pyc | Bin 2637 -> 2662 bytes civicfix/civicfix/settings.py | 1 + civicfix/core/templates/core/index.html | 6 +- .../core/templates/core/view_all_issues.html | 247 +++++++++++------- 4 files changed, 159 insertions(+), 95 deletions(-) diff --git a/civicfix/civicfix/__pycache__/settings.cpython-313.pyc b/civicfix/civicfix/__pycache__/settings.cpython-313.pyc index 188c8bdf3bbddcf39ba3139a06a6eef180159560..8f436698a2702f366d1c90675ec2659411a636ae 100644 GIT binary patch delta 55 zcmX>r@=S#HGcPX}0}!z9TAmTSk@qgjFB7}rMZcDnN_KqZJC(Z**S%n8u&hl KZFb{iX9NJ(TMya* delta 46 zcmaDRa#n=*GcPX}0}zC+UY=pRk@q39M8$l2mn#t B4ZQ#W diff --git a/civicfix/civicfix/settings.py b/civicfix/civicfix/settings.py index 8ffce99..a2b6db2 100644 --- a/civicfix/civicfix/settings.py +++ b/civicfix/civicfix/settings.py @@ -23,6 +23,7 @@ INSTALLED_APPS = [ 'django.contrib.admin', 'django.contrib.auth', 'django.contrib.contenttypes', + 'django.contrib.humanize', 'django.contrib.sessions', 'django.contrib.messages', 'django.contrib.staticfiles', diff --git a/civicfix/core/templates/core/index.html b/civicfix/core/templates/core/index.html index 42f7d5a..1000069 100644 --- a/civicfix/core/templates/core/index.html +++ b/civicfix/core/templates/core/index.html @@ -128,7 +128,7 @@ {% if user.is_authenticated %} View All Issues {% else %} - View All Issues + View All Issues {% endif %}
@@ -179,7 +179,7 @@

No issues reported yet

Be the first to report an issue in your community!

- Get Started + Get Started
{% endfor %} @@ -193,7 +193,7 @@ {% if user.is_authenticated %} Report an Issue {% else %} - Get Started Now + Get Started Now {% endif %} diff --git a/civicfix/core/templates/core/view_all_issues.html b/civicfix/core/templates/core/view_all_issues.html index 82189f1..135d97e 100644 --- a/civicfix/core/templates/core/view_all_issues.html +++ b/civicfix/core/templates/core/view_all_issues.html @@ -1,6 +1,6 @@ {% extends "core/base.html" %} - -{% block content %} +{% load humanize %} + {% block content %}
@@ -8,19 +8,24 @@
+ + + @@ -33,27 +38,37 @@
{% if issue.photo %} - {{ issue.title }} + {{ issue.title }} {% else %} - No image + No image {% endif %} +
- + {{ issue.category.name|default:"General" }}
{{ issue.title|truncatewords:6 }}
-

{{ issue.description|truncatewords:18 }}

+

+ {{ issue.description|truncatewords:18 }} +

- {{ issue.location|truncatewords:2 }} + + {{ issue.location|truncatewords:2 }} +
{% if user.is_authenticated %} - @@ -67,8 +82,10 @@
@@ -78,89 +95,135 @@

No issues reported yet

-

Be the first to report an issue in your community!

+

+ Be the first to report an issue in your community! +

Report an Issue
{% endfor %}
+ -{% endblock %} - -{% block extra_js %} - -{% endblock %} +{% endblock %} \ No newline at end of file