feat: show day delta

This commit is contained in:
Vladimir Rubin 2024-12-09 21:01:47 +02:00
parent 13a1f32d8d
commit c7b4373aef
Signed by: vavakado
GPG key ID: CAB744727F36B524

View file

@ -19,7 +19,7 @@
<div :for={exam <- @exams} class="py-2 flex gap-2">
<div class="grow">
<div class="font-bold"><%= exam.subject %></div>
<div class="font-sm"><%= exam.date %></div>
<div class="font-sm"><%= exam.date %> | In <b><%= Date.diff(exam.date, Date.utc_today()) %></b> days</div>
</div>
<button
phx-click="edit"