Update Public.get_autor! to only display public Artikel
Also get rid of the superfluous additional loop over articles/translations.
This commit is contained in:
@ -4,10 +4,6 @@
|
||||
<:subtitle><.link href={@autor.homepage_url}><%= @autor.homepage_name %></.link></:subtitle>
|
||||
</.header>
|
||||
|
||||
|
||||
|
||||
<%= for article <- @autor.articles do %>
|
||||
<.artikel :for={translation <- article.translations} artikel={translation} show_autor={false} />
|
||||
<% end %>
|
||||
<.artikel :for={artikel <- @autor.artikel} artikel={artikel} show_autor={false} />
|
||||
|
||||
<.back navigate={~p"/autoren"}>Back to autoren</.back>
|
||||
|
||||
Reference in New Issue
Block a user