diff --git a/civicfix/core/templates/core/issue_detail.html b/civicfix/core/templates/core/issue_detail.html new file mode 100644 index 0000000..dca1bad --- /dev/null +++ b/civicfix/core/templates/core/issue_detail.html @@ -0,0 +1,69 @@ +{% extends "core/base.html" %} +{% load humanize %} +{% block content %} +
+ +
+ {% if issue.photo %} +
+ {{ issue.title }} +
+ {% endif %} +
+

{{ issue.title }}

+

{{ issue.description }}

+

{{ issue.location }}

+ {{ issue.get_status_display }} +
+
+ + +
+
+
Comments
+
+
+ {% for comment in comments %} +
+ {{ comment.user.username }} + {{ comment.created_at|naturaltime }} +

{{ comment.content }}

+ + +
+ {% for reply in comment.replies.all %} +
+ {{ reply.user.username }} + {{ reply.created_at|naturaltime }} +

{{ reply.content }}

+
+ {% endfor %} + + + {% if user.is_authenticated %} +
+ {% csrf_token %} + +
+ {% endif %} +
+
+ {% empty %} +

No comments yet. Be the first!

+ {% endfor %} + + + {% if user.is_authenticated %} +
+ {% csrf_token %} + + +
+ {% else %} +

Login to comment.

+ {% endif %} +
+
+
+{% endblock %}