Skip to content

Commit

Permalink
Run formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
MarioRodrigues10 committed Apr 7, 2023
1 parent 36d8101 commit cea538c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/yearbook_web/live/class_live/show.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
defmodule YearbookWeb.ClassLive.Show do
@moduledoc false
use YearbookWeb, :live_view

alias Yearbook.University
Expand Down
6 changes: 3 additions & 3 deletions lib/yearbook_web/live/class_live/show.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
<h1>Show Class</h1>

<%= if @live_action in [:edit] do %>
<.modal return_to={Routes.class_show_path(@socket, :show, @class)}>
<.live_component module={YearbookWeb.ClassLive.FormComponent} id={@class.id} title={@page_title} action={@live_action} class={@class} return_to={Routes.class_show_path(@socket, :show, @class)} />
<.modal return_to={Routes.admin_class_show_path(@socket, :show, @class)}>
<.live_component module={YearbookWeb.ClassLive.FormComponent} id={@class.id} title={@page_title} action={@live_action} class={@class} return_to={Routes.admin_class_show_path(@socket, :show, @class)} />
</.modal>
<% end %>

Expand All @@ -14,5 +14,5 @@
</li>
</ul>

<span><%= live_patch("Edit", to: Routes.class_show_path(@socket, :edit, @class), class: "button") %></span> | <span><%= live_redirect("Back", to: Routes.class_index_path(@socket, :index)) %></span>
<span><%= live_patch("Edit", to: Routes.admin_class_show_path(@socket, :edit, @class), class: "button") %></span> | <span><%= live_redirect("Back", to: Routes.class_index_path(@socket, :index)) %></span>
</div>

0 comments on commit cea538c

Please sign in to comment.