17 lines
629 B
Elixir
17 lines
629 B
Elixir
<ul>
|
|
<li><%= link "Home", to: Routes.page_path(@conn, :index) %></li>
|
|
|
|
<%= if @current_user do %>
|
|
<li>Logged in as <%= @current_user.username %></li>
|
|
<li><%= link "Settings", to: Routes.user_settings_path(@conn, :edit) %></li>
|
|
<li><%= link "Log out", to: Routes.user_session_path(@conn, :delete), method: :delete %></li>
|
|
<% else %>
|
|
<li><%= link "Log in", to: Routes.user_session_path(@conn, :new) %></li>
|
|
<li><%= link "Register", to: Routes.user_registration_path(@conn, :new) %></li>
|
|
<% end %>
|
|
<hr />
|
|
<li>
|
|
<a href="https://recycled.cloud">
|
|
Back to recycled.cloud ↵
|
|
</a>
|
|
</ul>
|