Skip to content

Commit

Permalink
Minor ui fix
Browse files Browse the repository at this point in the history
  • Loading branch information
alxlion committed Aug 23, 2024
1 parent 5546fed commit 08b6a78
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
6 changes: 5 additions & 1 deletion lib/claper/accounts.ex
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,11 @@ defmodule Claper.Accounts do
when is_function(reset_password_url_fun, 1) do
{encoded_token, user_token} = UserToken.build_email_token(user, "reset_password")
Repo.insert!(user_token)
UserNotifier.deliver_reset_password_instructions(user, reset_password_url_fun.(encoded_token))

UserNotifier.deliver_reset_password_instructions(
user,
reset_password_url_fun.(encoded_token)
)
end

@doc """
Expand Down
12 changes: 6 additions & 6 deletions lib/claper_web/live/event_live/manage.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -372,10 +372,10 @@
<%= @event.name %>
</h2>
<div class="flex gap-x-3 items-center">
<div class="flex items-center text-sm text-gray-500">
<div class="flex items-center text-sm text-gray-500 gap-x-1">
<svg
xmlns="http://www.w3.org/2000/svg"
class="flex-shrink-0 mr-1.5 h-5 w-5 text-gray-400"
class="flex-shrink-0 h-5 w-5 text-gray-400"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
Expand All @@ -387,12 +387,12 @@
d="M7 20l4-16m2 16l4-16M6 9h14M4 15h14"
/>
</svg>
<%= @event.code %>
<span><%= @event.code %></span>
</div>
<div class="flex items-center text-sm text-gray-500">
<div class="flex items-center text-sm text-gray-500 gap-x-1">
<svg
xmlns="http://www.w3.org/2000/svg"
class="flex-shrink-0 mr-1.5 h-5 w-5 text-gray-400"
class="flex-shrink-0 h-5 w-5 text-gray-400"
viewBox="0 0 20 20"
fill="currentColor"
>
Expand All @@ -402,7 +402,7 @@
clip-rule="evenodd"
/>
</svg>
<%= @attendees_nb %>
<span><%= @attendees_nb %></span>
</div>
</div>
</div>
Expand Down
1 change: 1 addition & 0 deletions lib/claper_web/plugs/locale.ex
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ defmodule ClaperWeb.Plugs.Locale do
case String.split(tag, "-", parts: 2) do
[language, _country_variant] ->
if Enum.member?(tags, language), do: [tag], else: [tag, language]

[_language] ->
[tag]
end
Expand Down

0 comments on commit 08b6a78

Please sign in to comment.