Test for user system and comments

This commit is contained in:
Alphonse Paix
2025-10-06 02:08:26 +02:00
parent d96a29ee73
commit 04c2d2b7f5
12 changed files with 501 additions and 29 deletions

View File

@@ -16,7 +16,7 @@
</div>
</div>
</div>
<div id="comments-list" class="space-y-6">
<div id="comments-list">
{% block comments %}
{% if comments.is_empty() %}
<div class="p-8 text-center">
@@ -29,11 +29,11 @@
d="M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z"/>
</svg>
</div>
<h3 class="text-lg font-medium text-gray-900 mb-2">No data to display</h3>
<p class="text-gray-600">The request did not return any data.</p>
<h3 class="text-lg font-medium text-gray-900 mb-2">No comments to display</h3>
<p class="text-gray-600">Content may have shifted due to recent updates or list is empty.</p>
</div>
{% else %}
<div class="divide-y divide-gray-200">
<div class="divide-y divide-gray-200 mb-6">
{% for comment in comments %}
{% include "dashboard/comments/card.html" %}
{% endfor %}

View File

@@ -16,7 +16,7 @@
</div>
</div>
</div>
<div id="posts-list" class="space-y-6">
<div id="posts-list">
{% block posts %}
{% if posts.is_empty() %}
<div class="p-8 text-center">
@@ -29,11 +29,11 @@
d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"/>
</svg>
</div>
<h3 class="text-lg font-medium text-gray-900 mb-2">No data to display</h3>
<p class="text-gray-600">The request did not return any data.</p>
<h3 class="text-lg font-medium text-gray-900 mb-2">No posts to display</h3>
<p class="text-gray-600">Content may have shifted due to recent updates or list is empty.</p>
</div>
{% else %}
<div class="divide-y divide-gray-200">
<div class="divide-y divide-gray-200 mb-6">
{% for post in posts %}
{% include "dashboard/posts/card.html" %}
{% endfor %}

View File

@@ -19,10 +19,10 @@
</div>
</div>
</div>
<div id="subscribers-list" class="space-y-6">
<div id="subscribers-list">
{% block subs %}
{% if subscribers.is_empty() %}
<div class="g p-8 text-center">
<div class="p-8 text-center">
<div class="w-16 h-16 bg-gray-200 rounded-full flex items-center justify-center mx-auto mb-4">
<svg class="w-8 h-8 text-gray-500"
fill="none"
@@ -32,11 +32,11 @@
d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"/>
</svg>
</div>
<h3 class="text-lg font-medium text-gray-900 mb-2">No data available</h3>
<h3 class="text-lg font-medium text-gray-900 mb-2">No subscribers to display</h3>
<p class="text-gray-600">Content may have shifted due to recent updates or list is empty.</p>
</div>
{% else %}
<div class="divide-y divide-gray-200">
<div class="divide-y divide-gray-200 mb-6">
{% for subscriber in subscribers %}
{% include "dashboard/subscribers/card.html" %}
{% endfor %}

View File

@@ -28,8 +28,8 @@
d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"/>
</svg>
</div>
<h3 class="text-lg font-medium text-gray-900 mb-2">No users found</h3>
<p class="text-gray-600">No users in the system.</p>
<h3 class="text-lg font-medium text-gray-900 mb-2">No users to display</h3>
<p class="text-gray-600">Content may have shifted due to recent updates or list is empty.</p>
</div>
{% else %}
<div class="divide-y divide-gray-200">