Files
project-managment/templates/partials/tickets/comment_list.html
T

14 lines
734 B
HTML

{% for comment in comments %}
<div class="flex gap-3">
<div class="w-8 h-8 rounded-full bg-blue-500 flex items-center justify-center text-white text-xs font-bold flex-shrink-0">{{ comment.author.username|first|upper }}</div>
<div class="flex-1">
<div class="flex items-center gap-2 mb-1">
<span class="text-sm font-semibold text-gray-900">{{ comment.author.username }}</span>
<span class="text-xs text-gray-400">{{ comment.created_at|timesince }} ago</span>
</div>
<p class="text-sm text-gray-700">{{ comment.body }}</p>
</div>
</div>
{% empty %}
<p class="text-sm text-gray-400 text-center py-4">No comments yet.</p>
{% endfor %}