{% load authorization_tags %}
{% if user.is_authenticated and filtered_projects %}
{% for project_data in filtered_projects %}
{% with project=project_data.project tracker=project_data.tracker threads=project_data.comments comment_count=project_data.comment_count %}
{% has_project_permission project 'project.tracker.comment' as can_comment %}
{{ project.name }}
Assignee
{% include "cves/includes/assignee_badge.html" with cve_id=cve.cve_id project=project project_name=project.name org_name=request.current_organization.name %}
Status
{% include "cves/includes/status_badge.html" with cve_id=cve.cve_id project=project project_name=project.name org_name=request.current_organization.name %}
{% if comment_count|default:0 %}
{{ comment_count }} comment{% if comment_count != 1 %}s{% endif %}
{% else %}
No comments yet
{% endif %}
{% if threads %}
{% for thread in threads %}
{% with comment=thread.comment replies=thread.replies %}
{% if threads %} {% for thread in threads %} {% with comment=thread.comment replies=thread.replies %}-
{{ comment.author.username }}
{{ comment.created_at|date:"Y-m-d H:i" }}
{% if comment.edited %}
(edited)
{% endif %}
{% if can_comment %}
{% endif %}
{{ comment.body|linebreaksbr }}
{% if replies %}
{% endwith %}
{% endfor %}
{% endif %}
{% if can_comment %} {% endif %}{% for reply in replies %}-
{{ reply.author.username }}
{{ reply.created_at|date:"Y-m-d H:i" }}
{% if reply.edited %}
(edited)
{% endif %}
{% if can_comment %}
{% endif %}
{{ reply.body|linebreaksbr }}
{% endfor %}
{% endif %} {% if can_comment %} {% endif %}