<%= @autor.name %>
<%= @autor.description |> tidy_raw %>
diff --git a/lib/outlook_web/live/article_live/show.html.heex b/lib/outlook_web/live/article_live/show.html.heex
index e694cfe..3026a18 100644
--- a/lib/outlook_web/live/article_live/show.html.heex
+++ b/lib/outlook_web/live/article_live/show.html.heex
@@ -16,7 +16,7 @@
-<.table id="translations" rows={@article.translations} row_click={&JS.navigate(~p"/translations/#{(&1).id}")}>
+<.table id="translations" rows={@article.translations} row_click={&JS.navigate(~p"/translations/#{&1}")}>
<:col :let={translation} label="Language"><%= translation.language %>
<:col :let={translation} label="Title"><%= translation.title %>
<:col :let={translation} label="Teaser"><%= translation.teaser |> tidy_raw %>
@@ -24,9 +24,9 @@
<:col :let={translation} label="Public"><%= translation.public %>
<:action :let={translation}>
- <.link navigate={~p"/translations/#{translation.id}"}>Show
+ <.link navigate={~p"/translations/#{translation}"}>Show
- <.link navigate={~p"/translations/#{translation.id}/edit"}>Edit
+ <.link navigate={~p"/translations/#{translation}/edit"}>Edit
<:action :let={translation}>
<.link phx-click={JS.push("delete_translation", value: %{id: translation.id})} data-confirm="Are you sure?">
diff --git a/lib/outlook_web/live/translation_live/index.html.heex b/lib/outlook_web/live/translation_live/index.html.heex
index 4d4537b..30731e1 100644
--- a/lib/outlook_web/live/translation_live/index.html.heex
+++ b/lib/outlook_web/live/translation_live/index.html.heex
@@ -2,7 +2,7 @@
Listing Translations
-<.table id="translations" rows={@translations} row_click={&JS.navigate(~p(/translations/#{(&1).id}))}>
+<.table id="translations" rows={@translations} row_click={&JS.navigate(~p(/translations/#{&1}))}>
<:col :let={translation} label="Language"><%= translation.language %>
<:col :let={translation} label="Title"><%= translation.title %>
<:col :let={translation} label="Teaser"><%= translation.teaser |> tidy_raw %>
@@ -12,9 +12,9 @@
<:col :let={translation} label="Unauthorized"><%= translation.unauthorized %>
<:action :let={translation}>
- <.link navigate={~p"/translations/#{translation.id}"}>Show
+ <.link navigate={~p"/translations/#{translation}"}>Show
- <.link navigate={~p"/translations/#{translation.id}/edit"}>Edit
+ <.link navigate={~p"/translations/#{translation}/edit"}>Edit
<:action :let={translation}>
<.link phx-click={JS.push("delete", value: %{id: translation.id})} data-confirm="Are you sure?">
diff --git a/lib/outlook_web/live/translation_live/show.html.heex b/lib/outlook_web/live/translation_live/show.html.heex
index 16f6f92..af472bc 100644
--- a/lib/outlook_web/live/translation_live/show.html.heex
+++ b/lib/outlook_web/live/translation_live/show.html.heex
@@ -2,7 +2,7 @@
Translation <%= @translation.id %>
<:subtitle>This is a translation record from your database.
<:actions>
- <.link navigate={~p"/translations/#{@translation.id}/edit"} phx-click={JS.push_focus()}>
+ <.link navigate={~p"/translations/#{@translation}/edit"} phx-click={JS.push_focus()}>
<.button>Edit translation