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) %>
</p>
<% end %>
<%= not Enum.empty?(note.tags) do %>
<footer class="mt-2">
<.tags note={note}>
</footer>
<% end %>
</a>
<% end %>
</section>

View file

@ -93,7 +93,7 @@ defmodule ChiyaWeb.PageController do
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]
end

View file

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