defmodule SomethingErlangWeb.ThreadLive do
use SomethingErlangWeb, :live_view
alias SomethingErlang.Grover
def render(%{thread: _} = assigns) do
~H"""
<.pagination thread={@thread} />
<%= for %{userinfo: author, postdate: date, postbody: article} <- @thread.posts do %>
<.post author={author} date={date}>
<%= raw(article) %>
<% end %>
<.pagination thread={@thread} />
"""
end
def render(assigns) do
~H"""
<.user info={@author} />
<%= render_slot(@inner_block) %>
<.toolbar date={@date} />
"""
end
def user(assigns) do
~H"""