lib/chiya_web/controllers/page_controller.ex aktualisiert #242
3 changed files with 9 additions and 3 deletions
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
|
@ -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 %>
|
||||
|
|
Loading…
Reference in a new issue