diff --git a/dashboard/templates/posts.html b/dashboard/templates/posts.html index c4e6e6d..59a4617 100644 --- a/dashboard/templates/posts.html +++ b/dashboard/templates/posts.html @@ -41,10 +41,11 @@
{% for post in posts %} -
+ data-content="{{ post.content|lower }}" + onclick="viewPost({{ post.id }})">

{{ post.content[:200] }}{% if post.content|length > 200 %}...{% endif %}

@@ -54,7 +55,7 @@ {% if platform == 'x' %}bg-gray-700{% endif %} {% if platform == 'facebook' %}bg-blue-600/30 text-blue-400{% endif %} {% if platform == 'instagram' %}bg-pink-600/30 text-pink-400{% endif %} - {% if platform == 'threads' %}bg-gray-600{% endif %} + {% if platform == 'threads' %}bg-purple-600/30 text-purple-400{% endif %} ">{{ platform }} {% endfor %} {{ post.status }} + {% if post.quality_score %} + Score: {{ post.quality_score }} + {% endif %}
-
+
{{ post.created_at[:16] if post.created_at else '-' }}
+ {% if post.status == 'draft' or post.status == 'pending_approval' %}