|
@@ -2,11 +2,11 @@
|
|
|
{% load static %}
|
|
|
|
|
|
{% block content %}
|
|
|
+ <h3 class="card-title fw-bold my-3">{{ ticket.title }}</h3>
|
|
|
<div class="row">
|
|
|
<div class="col-12 col-md-8 mb-2 mb-md-0">
|
|
|
<div class="card h-100">
|
|
|
<div class="card-body">
|
|
|
- <h3 class="card-title fw-bold">{{ ticket.title }}</h3>
|
|
|
{% if ticket.note %}
|
|
|
<div class="card-text overflow-auto">{{ ticket.note|safe|urlize|linebreaks }}</div>
|
|
|
{% endif %}
|
|
@@ -200,26 +200,26 @@
|
|
|
<form class="mb-3" method="post">
|
|
|
{% csrf_token %}
|
|
|
<textarea class="form-control" name="comment-body" rows="2" placeholder="Write your comment here" required></textarea>
|
|
|
- <button class="btn btn-primary mt-2" type="submit">
|
|
|
+ <div class="d-flex justify-content-end">
|
|
|
+ <button class="btn btn-primary mt-2" type="submit">
|
|
|
<i class="fa-solid fa-paper-plane pe-1"></i>
|
|
|
- Comment
|
|
|
- </button>
|
|
|
+ Post
|
|
|
+ </button>
|
|
|
+ </div>
|
|
|
</form>
|
|
|
|
|
|
{% if comment_list %}
|
|
|
{% for comment in comment_list %}
|
|
|
- <div class="card mb-2">
|
|
|
+ <div class="card mb-2 bg-body-secondary">
|
|
|
<div class="card-body">
|
|
|
- <h5>
|
|
|
- {{ comment.author_username }}
|
|
|
- <small class="text-muted">{{ comment.author_email }}</small>
|
|
|
- </h5>
|
|
|
+ <h5>{{ comment.author_username }}</h5>
|
|
|
+
|
|
|
+ {{ comment.body|safe|urlize|linebreaks }}
|
|
|
|
|
|
- <div class="container">
|
|
|
- {{ comment.body|safe|urlize|linebreaks }}
|
|
|
+ <div class="text-body-secondary d-flex justify-content-between">
|
|
|
+ <small>{{ comment.author_email }}</small>
|
|
|
+ <small>{{ comment.date }}</small>
|
|
|
</div>
|
|
|
-
|
|
|
- <p class="card-text"><small class="text-body-secondary">{{ comment.date }}</small></p>
|
|
|
</div>
|
|
|
</div>
|
|
|
{% endfor %}
|