Files
project-managment/templates/pages/activity/activity_list.html
T
sankalp 0537ea5e5e feat(templates): enrichUI with Tailwind styling and messaging component improvements
- Add custom border, background, and spacing utilities to base template
- Enhance message notification styling and layout
- Update delete modal button appearance and behavior
- Refine comment card component with Tailwind classes and responsive behavior
- Adjust sidebar responsiveness for mobile view
2026-05-28 00:51:41 +05:45

51 lines
2.6 KiB
HTML

{% extends "base_authenticated.html" %}
{% block title %}Activity Log{% endblock %}
{% block content_inner %}
<div class="mb-6">
<h1 class="text-2xl font-bold text-primary">Activity Log</h1>
<p class="text-tertiary mt-1">System-wide audit trail of all actions.</p>
</div>
<div class="card-surface overflow-hidden">
<div class="overflow-x-auto">
<table class="w-full text-sm">
<thead>
<tr class="text-xs font-semibold text-muted uppercase tracking-wider bg-hover">
<th class="px-4 py-3 text-left">Actor</th>
<th class="px-4 py-3 text-left">Action</th>
<th class="px-4 py-3 text-left">Object</th>
<th class="px-4 py-3 text-left">Timestamp</th>
</tr>
</thead>
<tbody>
{% for activity in activities %}
<tr class="hover:bg-hover transition-colors border-t border-subtle">
<td class="px-4 py-3">
<div class="flex items-center gap-2">
<div class="w-7 h-7 rounded-full bg-blue-500 flex items-center justify-center text-white text-xs font-bold">{{ activity.actor.username|first|upper }}</div>
<span class="text-sm font-medium text-primary">{{ activity.actor.username }}</span>
</div>
</td>
<td class="px-4 py-3 text-secondary">{{ activity.verb }}</td>
<td class="px-4 py-3 text-tertiary">{{ activity.content_type }} #{{ activity.object_id }}</td>
<td class="px-4 py-3 text-tertiary">{{ activity.timestamp|date:"M d, Y H:i" }}</td>
</tr>
{% empty %}
<tr><td colspan="4" class="text-center py-12 text-tertiary">No activity recorded yet.</td></tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
{% if page_obj.has_other_pages %}
<div class="flex justify-center items-center gap-2 mt-6">
{% if page_obj.has_previous %}
<a href="?page={{ page_obj.previous_page_number }}" class="px-3 py-1.5 rounded-lg text-sm font-medium text-secondary hover:bg-hover border border-soft transition-colors">Previous</a>
{% endif %}
<span class="text-sm text-tertiary">Page {{ page_obj.number }} of {{ page_obj.paginator.num_pages }}</span>
{% if page_obj.has_next %}
<a href="?page={{ page_obj.next_page_number }}" class="px-3 py-1.5 rounded-lg text-sm font-medium text-secondary hover:bg-hover border border-soft transition-colors">Next</a>
{% endif %}
</div>
{% endif %}
{% endblock %}