forked from shibao/cannery
fixup! add invite model
This commit is contained in:
parent
93235558e2
commit
3eebba17c4
@ -5,13 +5,13 @@
|
|||||||
<%= link to: Routes.home_path(CanneryWeb.Endpoint, :index) do %>
|
<%= link to: Routes.home_path(CanneryWeb.Endpoint, :index) do %>
|
||||||
<h1 class="leading-5 text-xl text-white hover:underline">Cannery</h1>
|
<h1 class="leading-5 text-xl text-white hover:underline">Cannery</h1>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
|
||||||
<%= if @title_content do %>
|
<%= if @title_content do %>
|
||||||
<span>|</span>
|
<span>|</span>
|
||||||
<%= @title_content %>
|
<%= @title_content %>
|
||||||
<% end %>
|
<% end %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ul class="flex flex-row flex-wrap justify-center items-center
|
<ul class="flex flex-row flex-wrap justify-center items-center
|
||||||
text-lg space-x-4 text-lg text-white">
|
text-lg space-x-4 text-lg text-white">
|
||||||
<%# user settings %>
|
<%# user settings %>
|
||||||
@ -32,7 +32,14 @@
|
|||||||
<%= link "Manage", class: "hover:underline",
|
<%= link "Manage", class: "hover:underline",
|
||||||
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"
|
||||||
@ -43,7 +50,7 @@
|
|||||||
<% end %>
|
<% end %>
|
||||||
</datalist>
|
</datalist>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<li>
|
<li>
|
||||||
<%= link @current_user.email, class: "hover:underline",
|
<%= link @current_user.email, class: "hover:underline",
|
||||||
to: Routes.user_settings_path(CanneryWeb.Endpoint, :edit) %>
|
to: Routes.user_settings_path(CanneryWeb.Endpoint, :edit) %>
|
||||||
@ -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>
|
||||||
@ -95,4 +102,4 @@
|
|||||||
<%= live_flash(@flash, :error) %>
|
<%= live_flash(@flash, :error) %>
|
||||||
</p>
|
</p>
|
||||||
<% end %>
|
<% end %>
|
||||||
</header>
|
</header>
|
||||||
|
Loading…
Reference in New Issue
Block a user