2023-07-29 16:10:02 +02:00
|
|
|
<%= if @channel do %>
|
|
|
|
<section class="mx-auto max-w-2xl">
|
|
|
|
<.header>
|
|
|
|
<%= @channel.name %>
|
|
|
|
</.header>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section class="mt-6 flex flex-col gap-3 max-w-2xl mx-auto">
|
|
|
|
<section class="prose prose-gruvbox md:prose-lg lg:prose-xl max-w-none">
|
|
|
|
<%= Markdown.render(@channel.content) |> raw %>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section class="mt-6">
|
|
|
|
<.note_list notes={@notes} layout={@channel.layout} show_content={false} />
|
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
<% else %>
|
|
|
|
<section class="mx-auto max-w-2xl">
|
|
|
|
<.header>
|
2023-07-29 17:41:31 +02:00
|
|
|
Bookmarks
|
2023-07-29 16:10:02 +02:00
|
|
|
</.header>
|
|
|
|
|
|
|
|
<section class="prose prose-gruvbox mt-6">
|
2023-07-29 17:41:31 +02:00
|
|
|
Bookmarks not set up.
|
2023-07-29 16:10:02 +02:00
|
|
|
</section>
|
|
|
|
</section>
|
|
|
|
<% end %>
|