Skip to content

Commit

Permalink
use simple link instead of button in generators
Browse files Browse the repository at this point in the history
  • Loading branch information
SteffenDE committed Aug 20, 2024
1 parent bb099f5 commit 8cf7ab7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion priv/templates/phx.gen.html/index.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Listing <%= schema.human_plural %>
<:actions>
<.link href={~p"<%= schema.route_prefix %>/new"}>
<.button>New <%= schema.human_singular %></.button>
New <%= schema.human_singular %>
</.link>
</:actions>
</.header>
Expand Down
2 changes: 1 addition & 1 deletion priv/templates/phx.gen.html/show.html.heex
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<:subtitle>This is a <%= schema.singular %> record from your database.</:subtitle>
<:actions>
<.link href={~p"<%= schema.route_prefix %>/#{@<%= schema.singular %>}/edit"}>
<.button>Edit <%= schema.singular %></.button>
Edit <%= schema.singular %>
</.link>
</:actions>
</.header>
Expand Down
2 changes: 1 addition & 1 deletion priv/templates/phx.gen.live/index.ex
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web
Listing <%= schema.human_plural %>
<:actions>
<.link navigate={~p"<%= schema.route_prefix %>/new"}>
<.button>New <%= schema.human_singular %></.button>
New <%= schema.human_singular %>
</.link>
</:actions>
</.header>
Expand Down
2 changes: 1 addition & 1 deletion priv/templates/phx.gen.live/show.ex
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ defmodule <%= inspect context.web_module %>.<%= inspect Module.concat(schema.web
<:subtitle>This is a <%= schema.singular %> record from your database.</:subtitle>
<:actions>
<.link navigate={~p"<%= schema.route_prefix %>/#{@<%= schema.singular %>}/edit?return_to=show"}>
<.button>Edit <%= schema.singular %></.button>
Edit <%= schema.singular %>
</.link>
</:actions>
</.header>
Expand Down

0 comments on commit 8cf7ab7

Please sign in to comment.