display topbar when user is logged out
This commit is contained in:
parent
e0f0e39326
commit
b641e96601
@ -35,7 +35,6 @@ defmodule MemexWeb.Components.Topbar do
|
|||||||
|
|
||||||
<ul class="flex flex-row flex-wrap justify-center items-center
|
<ul class="flex flex-row flex-wrap justify-center items-center
|
||||||
text-lg text-primary-400 text-ellipsis">
|
text-lg text-primary-400 text-ellipsis">
|
||||||
<%= if @current_user do %>
|
|
||||||
<li class="mx-2 my-1">
|
<li class="mx-2 my-1">
|
||||||
<.link
|
<.link
|
||||||
navigate={Routes.note_index_path(Endpoint, :index)}
|
navigate={Routes.note_index_path(Endpoint, :index)}
|
||||||
@ -65,6 +64,7 @@ defmodule MemexWeb.Components.Topbar do
|
|||||||
|
|
||||||
<li class="mx-2 my-1 border-left border border-primary-700"></li>
|
<li class="mx-2 my-1 border-left border border-primary-700"></li>
|
||||||
|
|
||||||
|
<%= if @current_user do %>
|
||||||
<%= if @current_user.role == :admin do %>
|
<%= if @current_user.role == :admin do %>
|
||||||
<li class="mx-2 my-1">
|
<li class="mx-2 my-1">
|
||||||
<.link
|
<.link
|
||||||
|
Loading…
Reference in New Issue
Block a user