From a646943b577479d834dcf90d2ccfc88aa344b177 Mon Sep 17 00:00:00 2001 From: Ria Jotsinghani Date: Sat, 3 Dec 2022 12:42:41 -0500 Subject: [PATCH 1/3] created user_civis.html --- project/accounts/templates/accounts/user_civis.html | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 project/accounts/templates/accounts/user_civis.html diff --git a/project/accounts/templates/accounts/user_civis.html b/project/accounts/templates/accounts/user_civis.html new file mode 100644 index 000000000..e69de29bb From c6610c08b3275a9e4134b71d19ae023b658c8c4a Mon Sep 17 00:00:00 2001 From: Ria Jotsinghani Date: Sat, 3 Dec 2022 12:47:32 -0500 Subject: [PATCH 2/3] now user_civis.html extends base.html and should list all the civis for a given user profile --- .../templates/accounts/user_civis.html | 87 +++++++++++++++++++ 1 file changed, 87 insertions(+) diff --git a/project/accounts/templates/accounts/user_civis.html b/project/accounts/templates/accounts/user_civis.html index e69de29bb..4f295e680 100644 --- a/project/accounts/templates/accounts/user_civis.html +++ b/project/accounts/templates/accounts/user_civis.html @@ -0,0 +1,87 @@ +{% extends "base.html" %} +{% load i18n %} + +{% block content %} + {% for civi in user.civis.all %} +
+ +
+
{{ civi.body }}
+
+ +
+ {% empty %} +
+
+
+
No activity
+
+
+
+ {% endfor %} + + +{% endblock content %} From 04bed5d0499b4ba0a8d672e0a63cd4d600390f3c Mon Sep 17 00:00:00 2001 From: Ria Jotsinghani Date: Sun, 4 Dec 2022 20:51:30 -0500 Subject: [PATCH 3/3] now utilizes the civis variable created in the view --- project/accounts/templates/accounts/user_civis.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/project/accounts/templates/accounts/user_civis.html b/project/accounts/templates/accounts/user_civis.html index 4f295e680..99193e5a9 100644 --- a/project/accounts/templates/accounts/user_civis.html +++ b/project/accounts/templates/accounts/user_civis.html @@ -2,7 +2,7 @@ {% load i18n %} {% block content %} - {% for civi in user.civis.all %} + {% for civi in civis %}