„lib/chiya_web/controllers/page_html/wiki.html.heex“ ändern

This commit is contained in:
inhji 2023-07-07 13:55:22 +02:00
parent 1afbcca83b
commit cf25e90918

View file

@ -1,19 +1,21 @@
<.header>
<:title>Wiki</:title>
</.header>
<section class="w-full px-3">
<.header>
<:title>Wiki</:title>
</.header>
<section class="prose prose-gruvbox">
<%= Markdown.render(@channel.content) |> raw %>
<section class="prose prose-gruvbox">
<%= Markdown.render(@channel.content) |> raw %>
</section>
<%= if @channel do %>
<section class="flex flex-col md:flex-row">
<div class="w-full mt-6 sm:w-auto flex flex-1 flex-col gap-1.5">
<.note_list notes={@notes_updated} layout={@channel.layout} />
</div>
<div class="w-full mt-6 sm:w-auto flex flex-1 flex-col gap-1.5">
<.note_list notes={@notes_published} layout={@channel.layout} />
</div>
</section>
<% end %>
</section>
<%= if @channel do %>
<section class="flex flex-col md:col-row">
<div class="w-full mt-6 sm:w-auto flex flex-1 flex-col gap-1.5">
<.note_list notes={@notes_updated} layout={@channel.layout} />
</div>
<div class="w-full mt-6 sm:w-auto flex flex-1 flex-col gap-1.5">
<.note_list notes={@notes_published} layout={@channel.layout} />
</div>
</section>
<% end %>