This commit is contained in:
parent
9e9d8ffdaf
commit
094b0f0324
2 changed files with 8 additions and 4 deletions
|
@ -39,7 +39,7 @@
|
||||||
method="delete"
|
method="delete"
|
||||||
class="text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700 dark:text-zinc-300 dark:hover:text-zinc-100"
|
class="text-[0.8125rem] leading-6 text-zinc-900 font-semibold hover:text-zinc-700 dark:text-zinc-300 dark:hover:text-zinc-100"
|
||||||
>
|
>
|
||||||
<%= gettext("Log out") %>
|
<%= gettext("Log out") %>
|
||||||
</.link>
|
</.link>
|
||||||
</li>
|
</li>
|
||||||
<% else %>
|
<% else %>
|
||||||
|
|
|
@ -1,10 +1,14 @@
|
||||||
<.header>
|
<.header>
|
||||||
<%= gettext("Listing Exams") %>
|
<%= gettext("Listing Exams") %>
|
||||||
<div>
|
<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>
|
<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>
|
</div>
|
||||||
<:actions>
|
<:actions>
|
||||||
<.link patch={~p"/exams/new"}>
|
<.link patch={~p"/exams/new"}>
|
||||||
|
@ -27,7 +31,7 @@
|
||||||
0 -> gettext("Today")
|
0 -> gettext("Today")
|
||||||
1 -> gettext("Tomorrow")
|
1 -> gettext("Tomorrow")
|
||||||
x when x > 1 -> "#{x} #{gettext("days left")}"
|
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 %>
|
end %>
|
||||||
</b>
|
</b>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue