Initial commit
This commit is contained in:
31
lib/something_erlang_web/live/thread_live/show.html.heex
Normal file
31
lib/something_erlang_web/live/thread_live/show.html.heex
Normal file
@ -0,0 +1,31 @@
|
||||
<h1>Show Thread</h1>
|
||||
|
||||
<%= if @live_action in [:edit] do %>
|
||||
<.modal return_to={Routes.thread_show_path(@socket, :show, @thread)}>
|
||||
<.live_component
|
||||
module={SomethingErlangWeb.ThreadLive.FormComponent}
|
||||
id={@thread.id}
|
||||
title={@page_title}
|
||||
action={@live_action}
|
||||
thread={@thread}
|
||||
return_to={Routes.thread_show_path(@socket, :show, @thread)}
|
||||
/>
|
||||
</.modal>
|
||||
<% end %>
|
||||
|
||||
<ul>
|
||||
|
||||
<li>
|
||||
<strong>Title:</strong>
|
||||
<%= @thread.title %>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<strong>Thread:</strong>
|
||||
<%= @thread.thread_id %>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
<span><%= live_patch "Edit", to: Routes.thread_show_path(@socket, :edit, @thread), class: "button" %></span> |
|
||||
<span><%= live_redirect "Back", to: Routes.thread_index_path(@socket, :index) %></span>
|
Reference in New Issue
Block a user