{% extends "client_portal/base.html" %} {% from "components/ui.html" import page_header %} {% block title %}{{ _('Project Comments') }} - {{ _('Client Portal') }}{% endblock %} {% block content %} {% set breadcrumbs = [ {'text': _('Client Portal'), 'url': url_for('client_portal.dashboard')}, {'text': _('Projects'), 'url': url_for('client_portal.projects')}, {'text': project.name, 'url': url_for('client_portal.projects')}, {'text': _('Comments')} ] %} {{ page_header( icon_class='fas fa-comments', title_text=_('Project Comments'), subtitle_text=project.name, breadcrumbs=breadcrumbs ) }}

{{ _('Add Comment') }}

{% if comments %} {% for comment in comments %}

{% if comment.is_client_comment and comment.client_contact %} {{ comment.client_contact.full_name }} ({{ _('Client') }}) {% elif comment.author %} {{ comment.author.full_name if comment.author.full_name else comment.author.username }} {% else %} {{ _('Unknown') }} {% endif %}

{{ comment.created_at|user_datetime if comment.created_at else _('N/A') }}

{{ comment.content }}

{% endfor %} {% else %}

{{ _('No Comments') }}

{{ _('Be the first to comment on this project.') }}

{% endif %}
{{ _('Back to Projects') }}
{% endblock %}