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) %>
|
<%= 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>
|
||||||
|
|
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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 %>
|
||||||
|
|
Loading…
Reference in a new issue