2023-07-09 20:01:03 +02:00
|
|
|
<%= if @channel do %>
|
|
|
|
<section class="mx-auto max-w-2xl">
|
|
|
|
<.header>
|
|
|
|
<%= @channel.name %>
|
|
|
|
</.header>
|
2023-07-07 11:07:46 +02:00
|
|
|
|
2023-07-09 20:01:03 +02:00
|
|
|
<section class="prose prose-gruvbox mt-6">
|
|
|
|
<%= Markdown.render(@channel.content) |> raw %>
|
|
|
|
</section>
|
2023-07-07 13:55:22 +02:00
|
|
|
</section>
|
2023-07-07 12:04:26 +02:00
|
|
|
|
2023-07-09 20:01:03 +02:00
|
|
|
<section class="flex flex-col md:flex-row gap-3 mt-6 w-full sm:px-3">
|
|
|
|
<div class="w-full mt-6 sm:w-auto flex flex-1 flex-col gap-1.5">
|
|
|
|
<h2 class="text-xl text-theme-base">Recently Updated</h2>
|
2023-07-07 13:59:56 +02:00
|
|
|
|
2023-07-09 20:01:03 +02:00
|
|
|
<.note_list notes={@notes_updated} layout={@channel.layout} />
|
|
|
|
</div>
|
2023-07-07 12:02:47 +02:00
|
|
|
|
2023-07-09 20:01:03 +02:00
|
|
|
<div class="w-full mt-6 sm:w-auto flex flex-1 flex-col gap-1.5">
|
|
|
|
<h2 class="text-xl text-theme-base">Recently Published</h2>
|
2023-07-07 13:59:56 +02:00
|
|
|
|
2023-07-09 20:01:03 +02:00
|
|
|
<.note_list notes={@notes_published} layout={@channel.layout} />
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
<% else %>
|
|
|
|
<section class="mx-auto max-w-2xl">
|
|
|
|
<.header>
|
|
|
|
Wiki
|
|
|
|
</.header>
|
|
|
|
|
|
|
|
<section class="prose prose-gruvbox mt-6">
|
|
|
|
Wiki is not set up.
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
<% end %>
|