frontend add post toolbar; so far displaying postdate

This commit is contained in:
2022-08-02 13:24:07 +02:00
parent b369c0862b
commit 92469fc558
3 changed files with 18 additions and 9 deletions

View File

@ -12,15 +12,15 @@
<% end %>
<h2>
<%= @thread.title %>
<%= raw @thread.title %>
</h2>
<div class="thread my-8">
<.pagination socket={@socket} thread={@thread} />
<%= for post <- @thread.posts do %>
<.post author={post.userinfo} article={post.postbody} />
<% end %>
<.post author={post.userinfo} article={post.postbody} date={post.postdate} />
<% end %>
<.pagination socket={@socket} thread={@thread} />
<.pagination socket={@socket} thread={@thread} />
</div>