much style

This commit is contained in:
Rüdiger Diedrich
2022-07-25 11:05:55 +02:00
parent bd8177a7c0
commit ef0e89478c
3 changed files with 29 additions and 17 deletions

View File

@ -11,18 +11,16 @@
</.modal>
<% end %>
<h2>
<%= @thread.title %>
</h2>
<h2>
<%= @thread.title %>
</h2>
<div class="thread my-8">
<%= for post <- @thread.posts do %>
<.post author={post.userinfo} article={post.postbody} />
<% end %>
</div>
<div class="thread my-8">
<.pagination socket={@socket} thread={@thread} />
<%= for post <- @thread.posts do %>
<.post author={post.userinfo} article={post.postbody} />
<% end %>
<span><%= live_redirect "Back", to: Routes.thread_index_path(@socket, :index) %></span>
<span><%= @thread.page %></span>
<span><%= live_redirect "Next Page", class: "link",
to: Routes.thread_show_path(@socket, :show, @thread.id, page: @thread.page+1) %></span>
<.pagination socket={@socket} thread={@thread} />
</div>