forked from shibao/cannery
fixup! add invite model
This commit is contained in:
parent
93235558e2
commit
3eebba17c4
@ -33,6 +33,13 @@
|
||||
to: Routes.ammo_group_index_path(CanneryWeb.Endpoint, :index) %>
|
||||
</li>
|
||||
|
||||
<%= if @current_user.role == :admin do %>
|
||||
<li>
|
||||
<%= link "Invites", class: "hover:underline",
|
||||
to: Routes.invite_index_path(CanneryWeb.Endpoint, :index) %>
|
||||
</li>
|
||||
<% end %>
|
||||
|
||||
<%# search %>
|
||||
<form phx-change="suggest" phx-submit="search">
|
||||
<input type="text" name="q" class="input input-primary"
|
||||
@ -67,10 +74,10 @@
|
||||
<% else %>
|
||||
|
||||
<%= if Accounts.allow_registration?() do %>
|
||||
<li>
|
||||
<%= link "Register", class: "hover:underline",
|
||||
to: Routes.user_registration_path(CanneryWeb.Endpoint, :new) %>
|
||||
</li>
|
||||
<li>
|
||||
<%= link "Register", class: "hover:underline",
|
||||
to: Routes.user_registration_path(CanneryWeb.Endpoint, :new) %>
|
||||
</li>
|
||||
<% end %>
|
||||
|
||||
<li>
|
||||
|
Loading…
Reference in New Issue
Block a user