Files
project-managment/templates/pages/activity/activity_list.html
T
sankalp 001e6fac48 feat(templates): add core UItemplates for authentication and ticket management
New Features
- Added `templates/base.html` with Tailwind, HTMX, and project management title block.
- Introduced `templates/base/base.html` as a minimal fallback layout.
- Created `templates/components/navbar.html` with authenticated navigation menu.
- Implemented `templates/pages/accounts/login.html` for user authentication.
- Developed ticket management templates:
  - `templates/pages/tickets/ticket_list.html` for displaying tickets.
  - `templates/pages/tickets/ticket_form.html` for creating/editing tickets.

Enhancements
- Structured all new templates to inherit from the shared base layout.
- Integrated Tailwind CSS and HTMX via CDN for consistent styling and interactivity.
- Provided placeholder blocks for extra head and scripts to allow future extensions.

Bug Fixes- No bug fixes included in this commit.
2026-05-27 23:32:54 +05:45

34 lines
1.4 KiB
HTML

{% extends "base.html" %}
{% block title %}Activity Log{% endblock %}
{% block content %}
<h1 class="text-3xl font-bold mb-4">Activity Log</h1>
<div class="overflow-x-auto">
<table class="table table-zebra">
<thead><tr><th>Actor</th><th>Action</th><th>Object</th><th>Timestamp</th></tr></thead>
<tbody>
{% for activity in activities %}
<tr>
<td>{{ activity.actor.username }}</td>
<td>{{ activity.verb }}</td>
<td>{{ activity.content_type }} #{{ activity.object_id }}</td>
<td>{{ activity.timestamp|date:"Y-m-d H:i" }}</td>
</tr>
{% empty %}
<tr><td colspan="4" class="text-center">No activity recorded.</td></tr>
{% endfor %}
</tbody>
</table>
</div>
{% if page_obj.has_other_pages %}
<div class="flex justify-center mt-4 gap-2">
{% if page_obj.has_previous %}
<a href="?page={{ page_obj.previous_page_number }}" class="btn btn-sm">Previous</a>
{% endif %}
<span class="btn btn-sm btn-disabled">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="btn btn-sm">Next</a>
{% endif %}
</div>
{% endif %}
{% endblock %}