Merge pull request 'lib/chiya_web/controllers/page_controller.ex aktualisiert' (#242) from devel into main

Reviewed-on: #242
This commit is contained in:
inhji 2023-07-29 18:32:01 +02:00
commit 61ac5c95a1
3 changed files with 9 additions and 3 deletions

View file

@ -153,6 +153,12 @@ defmodule ChiyaWeb.PublicComponents do
<%= String.slice(note.content, 0..150) %> <%= String.slice(note.content, 0..150) %>
</p> </p>
<% end %> <% end %>
<%= not Enum.empty?(note.tags) do %>
<footer class="mt-2">
<.tags note={note}>
</footer>
<% end %>
</a> </a>
<% end %> <% end %>
</section> </section>

View file

@ -93,7 +93,7 @@ defmodule ChiyaWeb.PageController do
id -> id ->
channel = Chiya.Channels.get_channel!(id) channel = Chiya.Channels.get_channel!(id)
notes = Chiya.Notes.list_notes_by_channel_updated(channel, 999) notes = Chiya.Notes.list_notes_by_channel_published(channel, 999)
[channel, notes] [channel, notes]
end end

View file

@ -17,11 +17,11 @@
<% else %> <% else %>
<section class="mx-auto max-w-2xl"> <section class="mx-auto max-w-2xl">
<.header> <.header>
Wiki Bookmarks
</.header> </.header>
<section class="prose prose-gruvbox mt-6"> <section class="prose prose-gruvbox mt-6">
Wiki is not set up. Bookmarks not set up.
</section> </section>
</section> </section>
<% end %> <% end %>