fixup! add invite model

This commit is contained in:
shibao 2021-09-10 00:30:33 -04:00 committed by oliviasculley
parent 93235558e2
commit 3eebba17c4

View File

@ -33,6 +33,13 @@
to: Routes.ammo_group_index_path(CanneryWeb.Endpoint, :index) %> to: Routes.ammo_group_index_path(CanneryWeb.Endpoint, :index) %>
</li> </li>
<%= if @current_user.role == :admin do %>
<li>
<%= link "Invites", class: "hover:underline",
to: Routes.invite_index_path(CanneryWeb.Endpoint, :index) %>
</li>
<% end %>
<%# search %> <%# search %>
<form phx-change="suggest" phx-submit="search"> <form phx-change="suggest" phx-submit="search">
<input type="text" name="q" class="input input-primary" <input type="text" name="q" class="input input-primary"
@ -67,10 +74,10 @@
<% else %> <% else %>
<%= if Accounts.allow_registration?() do %> <%= if Accounts.allow_registration?() do %>
<li> <li>
<%= link "Register", class: "hover:underline", <%= link "Register", class: "hover:underline",
to: Routes.user_registration_path(CanneryWeb.Endpoint, :new) %> to: Routes.user_registration_path(CanneryWeb.Endpoint, :new) %>
</li> </li>
<% end %> <% end %>
<li> <li>