Skip to content

Commit 3a766c9

Browse files
committed
fix: display time alongside date in activity history entries
1 parent 6b1010d commit 3a766c9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/templates/app/components/fill_history.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ <h2 class="text-2xl font-bold text-white">Activity History</h2>
2222
<li id="history-{{ entry.id }}"
2323
class="bg-[#39404b] p-4 pt-3 rounded-lg group relative">
2424
<div class="flex justify-between items-center mb-2">
25-
<span class="text-sm text-gray-400">{{ entry.date|date:"Y-m-d" }}</span>
25+
<span class="text-sm text-gray-400">{{ entry.date|date:"Y-m-d" }} {{ entry.date|time:"H:i" }}</span>
26+
2627
<button class="inline-flex items-center justify-center rounded-md h-8 w-8 text-gray-400 hover:text-red-400 hover:bg-red-400/10 opacity-0 group-hover:opacity-100 transition-opacity duration-200 focus:outline-none focus:ring-2 focus:ring-red-500 focus:ring-opacity-50 cursor-pointer"
2728
hx-delete="{% url 'delete_history_record' media_type entry.id %}"
2829
hx-headers='{"X-CSRFToken": "{{ csrf_token }}"}'

0 commit comments

Comments
 (0)