{% extends "layouts/base.html" %} {% load i18n %} {% load static %} {% load star_rating %} {% load social_icons %} {% block title %}Comment #{{ comment.id }} - {% trans "Social Media Monitoring" %} - PX360{% endblock %} {% block content %}
{% social_icon comment.platform %}

{% trans "Comment Details" %}

{{ comment.get_platform_display }}

{% trans "View Similar" %} {% trans "Back to Platform" %}
{{ comment.get_platform_display }} {% if comment.rating %} {{ comment.rating|star_rating }} {{ comment.rating }}/5 {% endif %} {% if comment.ai_analysis %} {% with sentiment=comment.ai_analysis.sentiment.classification.en %} {% if sentiment == 'positive' %} Positive {% elif sentiment == 'negative' %} Negative {% else %} Neutral {% endif %} {% endwith %} {% else %} Not Analyzed {% endif %}
{% if comment.published_at %} {{ comment.published_at|date:"M d, Y H:i" }} {% else %} {{ comment.scraped_at|date:"M d, Y H:i" }} {% endif %}
{% if comment.author %}
@{{ comment.author }}
{% endif %}

{{ comment.comments }}

{{ comment.like_count }}
{% trans "Likes" %}
{{ comment.reply_count }}
{% trans "Replies" %}
{{ comment.scraped_at|timesince }}
{% trans "Scraped" %}
{% if comment.post_url %} {% endif %}
{% if comment.ai_analysis %}
{% trans "AI Analysis" %}
{% trans "Sentiment" %}

{{ comment.ai_analysis.sentiment.classification.en|title }}

{{ comment.ai_analysis.sentiment.classification.ar }}

{% trans "Sentiment Score" %}

{{ comment.ai_analysis.sentiment.score|floatformat:2 }}

{% trans "Analysis confidence" %}: {{ comment.ai_analysis.sentiment.confidence|floatformat:2 }}

{% if comment.ai_analysis.summaries.en %}
{% trans "Summary (English)" %}

{{ comment.ai_analysis.summaries.en }}

{% endif %} {% if comment.ai_analysis.summaries.ar %}
{% trans "الملخص (Arabic)" %}

{{ comment.ai_analysis.summaries.ar }}

{% endif %} {% if comment.ai_analysis.keywords.en %}
{% trans "Keywords" %}
{% for keyword in comment.ai_analysis.keywords.en %} {{ keyword }} {% endfor %}
{% endif %} {% if comment.ai_analysis.topics.en %}
{% trans "Topics" %}
{% for topic in comment.ai_analysis.topics.en %} {{ topic }} {% endfor %}
{% endif %}
{% endif %}
{{ comment.raw_data }}
{% trans "Comment Info" %}
Comment ID:
{{ comment.comment_id }}
Post ID:
{{ comment.post_id }}
Platform:
{{ comment.get_platform_display }}
Published:
{% if comment.published_at %} {{ comment.published_at|date:"M d, Y H:i" }} {% else %} - {% endif %}
Scraped:
{{ comment.scraped_at|date:"M d, Y H:i" }}
{% if comment.ai_analysis.entities %}
{% trans "Entities" %}
    {% for entity in comment.ai_analysis.entities|slice:":10" %}
  • {% if entity.text %}{{ entity.text }}{% else %}{{ entity }}{% endif %} {% if entity.type %} {{ entity.type }} {% endif %}
  • {% endfor %}
{% endif %}
{% trans "Actions" %}
{% endblock %}