diff --git a/civicfix/core/__pycache__/models.cpython-313.pyc b/civicfix/core/__pycache__/models.cpython-313.pyc index 145a2a6..a1defd5 100644 Binary files a/civicfix/core/__pycache__/models.cpython-313.pyc and b/civicfix/core/__pycache__/models.cpython-313.pyc differ diff --git a/civicfix/core/__pycache__/urls.cpython-313.pyc b/civicfix/core/__pycache__/urls.cpython-313.pyc index 136a0af..b8179ac 100644 Binary files a/civicfix/core/__pycache__/urls.cpython-313.pyc and b/civicfix/core/__pycache__/urls.cpython-313.pyc differ diff --git a/civicfix/core/__pycache__/views.cpython-313.pyc b/civicfix/core/__pycache__/views.cpython-313.pyc index a4513e6..4a4eff7 100644 Binary files a/civicfix/core/__pycache__/views.cpython-313.pyc and b/civicfix/core/__pycache__/views.cpython-313.pyc differ diff --git a/civicfix/core/models.py b/civicfix/core/models.py index c3b25cf..36dcebc 100644 --- a/civicfix/core/models.py +++ b/civicfix/core/models.py @@ -61,7 +61,6 @@ class IssueCategory(models.Model): def __str__(self): return self.name -# issues/models.py class Issue(models.Model): STATUS_REPORTED = 'reported' STATUS_ACKNOWLEDGED = 'acknowledged' diff --git a/civicfix/core/templates/core/base.html b/civicfix/core/templates/core/base.html index 0173209..5e59ead 100644 --- a/civicfix/core/templates/core/base.html +++ b/civicfix/core/templates/core/base.html @@ -75,6 +75,7 @@ +
Welcome, {{ request.user.username }}. Your Departments: + {% for dept in departments %} {{ dept.name }}{% if not forloop.last %}, {% endif %}{% endfor %} +
+| # | +Title | +Category | +Reported By | +Status | +Created At | +
|---|---|---|---|---|---|
| {{ forloop.counter }} | +{{ issue.title }} | +{{ issue.category.name|default:"—" }} | +{{ issue.reporter.username }} | ++ {% if issue.status == "reported" %} + Reported + {% elif issue.status == "acknowledged" %} + Acknowledged + {% elif issue.status == "in_progress" %} + In Progress + {% elif issue.status == "resolved" %} + Resolved + {% else %} + Unknown + {% endif %} + | +{{ issue.created_at|date:"M d, Y H:i" }} | +
No issues assigned to your departments yet.
+ {% endif %} +