feat: show day delta
This commit is contained in:
parent
13a1f32d8d
commit
c7b4373aef
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@
|
||||||
<div :for={exam <- @exams} class="py-2 flex gap-2">
|
<div :for={exam <- @exams} class="py-2 flex gap-2">
|
||||||
<div class="grow">
|
<div class="grow">
|
||||||
<div class="font-bold"><%= exam.subject %></div>
|
<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>
|
</div>
|
||||||
<button
|
<button
|
||||||
phx-click="edit"
|
phx-click="edit"
|
||||||
|
|
Loading…
Reference in a new issue