style: mix format
All checks were successful
Checks / check (pull_request) Successful in -6m20s

This commit is contained in:
Vladimir Rubin 2024-12-11 22:22:40 +02:00
parent 9e9d8ffdaf
commit 094b0f0324
Signed by: vavakado
GPG key ID: CAB744727F36B524
2 changed files with 8 additions and 4 deletions

View file

@ -1,10 +1,14 @@
<.header>
<%= gettext("Listing Exams") %>
<div>
<button phx-click="sort" phx-value-by="subject" class="font-light"><%= gettext("Sort by Subject") %></button>
<button phx-click="sort" phx-value-by="subject" class="font-light">
<%= gettext("Sort by Subject") %>
</button>
<a>|</a>
<button phx-click="sort" phx-value-by="date" class="font-light"><%= gettext("Sort by Date") %></button>
<button phx-click="sort" phx-value-by="date" class="font-light">
<%= gettext("Sort by Date") %>
</button>
</div>
<:actions>
<.link patch={~p"/exams/new"}>
@ -27,7 +31,7 @@
0 -> gettext("Today")
1 -> gettext("Tomorrow")
x when x > 1 -> "#{x} #{gettext("days left")}"
x when x < 0 -> "#{x*-1} #{gettext("days passed")}"
x when x < 0 -> "#{x * -1} #{gettext("days passed")}"
end %>
</b>
</div>