fix new invite button not working
This commit is contained in:
		| @@ -1,14 +1,14 @@ | |||||||
| <div class="mx-auto flex flex-col justify-center items-stretch space-y-4 max-w-3xl"> | <div class="flex flex-col justify-center items-stretch mx-auto space-y-4 max-w-3xl"> | ||||||
|   <h1 class="title text-xl title-primary-500"> |   <h1 class="text-xl title title-primary-500"> | ||||||
|     <%= gettext("invites") %> |     <%= gettext("invites") %> | ||||||
|   </h1> |   </h1> | ||||||
|  |  | ||||||
|   <%= if @invites |> Enum.empty?() do %> |   <%= if @invites |> Enum.empty?() do %> | ||||||
|     <h1 class="title text-xl text-primary-400 text-center"> |     <h1 class="text-xl text-center title text-primary-400"> | ||||||
|       <%= gettext("no invites 😔") %> |       <%= gettext("no invites 😔") %> | ||||||
|     </h1> |     </h1> | ||||||
|  |  | ||||||
|     <.link patch={~p"/invites"} class="ml-auto btn btn-primary"> |     <.link patch={~p"/invites/new"} class="ml-auto btn btn-primary"> | ||||||
|       <%= dgettext("actions", "new invite") %> |       <%= dgettext("actions", "new invite") %> | ||||||
|     </.link> |     </.link> | ||||||
|   <% end %> |   <% end %> | ||||||
| @@ -86,7 +86,7 @@ | |||||||
|       </.link> |       </.link> | ||||||
|     </.invite_card> |     </.invite_card> | ||||||
|  |  | ||||||
|     <.link :if={@invites != []} patch={~p"/invites/new"} class="btn btn-primary ml-auto"> |     <.link :if={@invites != []} patch={~p"/invites/new"} class="ml-auto btn btn-primary"> | ||||||
|       <%= dgettext("actions", "create invite") %> |       <%= dgettext("actions", "create invite") %> | ||||||
|     </.link> |     </.link> | ||||||
|   </div> |   </div> | ||||||
| @@ -94,7 +94,7 @@ | |||||||
|   <%= unless @admins |> Enum.empty?() do %> |   <%= unless @admins |> Enum.empty?() do %> | ||||||
|     <hr class="hr" /> |     <hr class="hr" /> | ||||||
|  |  | ||||||
|     <h1 class="title text-xl text-primary-400"> |     <h1 class="text-xl title text-primary-400"> | ||||||
|       <%= gettext("admins") %> |       <%= gettext("admins") %> | ||||||
|     </h1> |     </h1> | ||||||
|  |  | ||||||
| @@ -122,7 +122,7 @@ | |||||||
|   <%= unless @users |> Enum.empty?() do %> |   <%= unless @users |> Enum.empty?() do %> | ||||||
|     <hr class="hr" /> |     <hr class="hr" /> | ||||||
|  |  | ||||||
|     <h1 class="title text-xl text-primary-400"> |     <h1 class="text-xl title text-primary-400"> | ||||||
|       <%= gettext("users") %> |       <%= gettext("users") %> | ||||||
|     </h1> |     </h1> | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user