lib/chiya_web/controllers/page_html/bookmarks.html.heex hinzugefügt
This commit is contained in:
parent
1891a82893
commit
6ad008865e
1 changed files with 27 additions and 0 deletions
27
lib/chiya_web/controllers/page_html/bookmarks.html.heex
Normal file
27
lib/chiya_web/controllers/page_html/bookmarks.html.heex
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
<%= 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>
|
||||||
|
Wiki
|
||||||
|
</.header>
|
||||||
|
|
||||||
|
<section class="prose prose-gruvbox mt-6">
|
||||||
|
Wiki is not set up.
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
|
<% end %>
|
Loading…
Reference in a new issue