Merge pull request 'devel' (#31) from devel into main

Reviewed-on: #31
This commit is contained in:
inhji 2023-03-31 13:10:54 +02:00
commit be15b7be90
2 changed files with 5 additions and 2 deletions

View file

@ -1,12 +1,14 @@
<header class="px-4 sm:px-6 lg:px-8"> <header class="px-4 sm:px-6 lg:px-8">
<div class="flex items-center justify-end border-b border-theme-dim/50 py-3"> <div class="flex items-center justify-end border-b border-theme-dim/50 py-3">
<div class="flex items-center gap-4"> <div class="flex items-center gap-4">
<%= for channel <- @channels %>
<.link <.link
href={~p"/n/about"} href={~p"/#{channel.slug}"}
class="text-xs font-semibold leading-6 text-theme-base hover:text-theme-base/75" class="text-xs font-semibold leading-6 text-theme-base hover:text-theme-base/75"
> >
About <%= channel.name %>
</.link> </.link>
<% end %>
</div> </div>
</div> </div>
</header> </header>

View file

@ -18,6 +18,7 @@ defmodule ChiyaWeb.Router do
pipeline :public do pipeline :public do
plug :put_root_layout, {ChiyaWeb.Layouts, :root_public} plug :put_root_layout, {ChiyaWeb.Layouts, :root_public}
plug :fetch_identities plug :fetch_identities
plug :fetch_public_channels
end end
pipeline :api do pipeline :api do