display topbar when user is logged out
This commit is contained in:
		| @@ -35,36 +35,36 @@ 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"> | ||||||
|  |           <li class="mx-2 my-1"> | ||||||
|  |             <.link | ||||||
|  |               navigate={Routes.note_index_path(Endpoint, :index)} | ||||||
|  |               class="text-primary-400 text-primary-400 hover:underline truncate" | ||||||
|  |             > | ||||||
|  |               <%= gettext("notes") %> | ||||||
|  |             </.link> | ||||||
|  |           </li> | ||||||
|  |  | ||||||
|  |           <li class="mx-2 my-1"> | ||||||
|  |             <.link | ||||||
|  |               navigate={Routes.context_index_path(Endpoint, :index)} | ||||||
|  |               class="text-primary-400 text-primary-400 hover:underline truncate" | ||||||
|  |             > | ||||||
|  |               <%= gettext("contexts") %> | ||||||
|  |             </.link> | ||||||
|  |           </li> | ||||||
|  |  | ||||||
|  |           <li class="mx-2 my-1"> | ||||||
|  |             <.link | ||||||
|  |               navigate={Routes.pipeline_index_path(Endpoint, :index)} | ||||||
|  |               class="text-primary-400 text-primary-400 hover:underline truncate" | ||||||
|  |             > | ||||||
|  |               <%= gettext("pipelines") %> | ||||||
|  |             </.link> | ||||||
|  |           </li> | ||||||
|  |  | ||||||
|  |           <li class="mx-2 my-1 border-left border border-primary-700"></li> | ||||||
|  |  | ||||||
|           <%= if @current_user do %> |           <%= if @current_user do %> | ||||||
|             <li class="mx-2 my-1"> |  | ||||||
|               <.link |  | ||||||
|                 navigate={Routes.note_index_path(Endpoint, :index)} |  | ||||||
|                 class="text-primary-400 text-primary-400 hover:underline truncate" |  | ||||||
|               > |  | ||||||
|                 <%= gettext("notes") %> |  | ||||||
|               </.link> |  | ||||||
|             </li> |  | ||||||
|  |  | ||||||
|             <li class="mx-2 my-1"> |  | ||||||
|               <.link |  | ||||||
|                 navigate={Routes.context_index_path(Endpoint, :index)} |  | ||||||
|                 class="text-primary-400 text-primary-400 hover:underline truncate" |  | ||||||
|               > |  | ||||||
|                 <%= gettext("contexts") %> |  | ||||||
|               </.link> |  | ||||||
|             </li> |  | ||||||
|  |  | ||||||
|             <li class="mx-2 my-1"> |  | ||||||
|               <.link |  | ||||||
|                 navigate={Routes.pipeline_index_path(Endpoint, :index)} |  | ||||||
|                 class="text-primary-400 text-primary-400 hover:underline truncate" |  | ||||||
|               > |  | ||||||
|                 <%= gettext("pipelines") %> |  | ||||||
|               </.link> |  | ||||||
|             </li> |  | ||||||
|  |  | ||||||
|             <li class="mx-2 my-1 border-left border border-primary-700"></li> |  | ||||||
|  |  | ||||||
|             <%= 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 | ||||||
|   | |||||||
| @@ -131,7 +131,7 @@ msgstr "" | |||||||
| msgid "content" | msgid "content" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/memex_web/components/topbar.ex:53 | #: lib/memex_web/components/topbar.ex:52 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "contexts" | msgid "contexts" | ||||||
| msgstr "" | msgstr "" | ||||||
| @@ -272,7 +272,7 @@ msgstr "" | |||||||
| msgid "no notes found" | msgid "no notes found" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/memex_web/components/topbar.ex:44 | #: lib/memex_web/components/topbar.ex:43 | ||||||
| #: lib/memex_web/live/note_live/index.html.heex:3 | #: lib/memex_web/live/note_live/index.html.heex:3 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "notes" | msgid "notes" | ||||||
| @@ -283,7 +283,7 @@ msgstr "" | |||||||
| msgid "notes:" | msgid "notes:" | ||||||
| msgstr "" | msgstr "" | ||||||
|  |  | ||||||
| #: lib/memex_web/components/topbar.ex:62 | #: lib/memex_web/components/topbar.ex:61 | ||||||
| #, elixir-autogen, elixir-format | #, elixir-autogen, elixir-format | ||||||
| msgid "pipelines" | msgid "pipelines" | ||||||
| msgstr "" | msgstr "" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user