Add tidy_raw() helper
This commit is contained in:
@ -19,7 +19,7 @@
|
||||
<.table id="translations" rows={@article.translations} row_click={&JS.navigate(~p"/translations/#{(&1).id}")}>
|
||||
<:col :let={translation} label="Language"><%= translation.language %></:col>
|
||||
<:col :let={translation} label="Title"><%= translation.title %></:col>
|
||||
<:col :let={translation} label="Teaser"><%= translation.teaser %></:col>
|
||||
<:col :let={translation} label="Teaser"><%= translation.teaser |> tidy_raw %></:col>
|
||||
<:col :let={translation} label="Date"><%= translation.date %></:col>
|
||||
<:col :let={translation} label="Public"><%= translation.public %></:col>
|
||||
<:action :let={translation}>
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
|
||||
<.table id="authors" rows={@authors} row_click={&JS.navigate(~p"/authors/#{&1}")}>
|
||||
<:col :let={author} label="Name"><%= author.name %></:col>
|
||||
<:col :let={author} label="Description"><%= author.description %></:col>
|
||||
<:col :let={author} label="Description"><%= author.description |> tidy_raw %></:col>
|
||||
<:col :let={author} label="Homepage name"><%= author.homepage_name %></:col>
|
||||
<:col :let={author} label="Homepage url"><%= author.homepage_url %></:col>
|
||||
<:action :let={author}>
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
<.table id="translations" rows={@translations} row_click={&JS.navigate(~p(/translations/#{(&1).id}))}>
|
||||
<:col :let={translation} label="Language"><%= translation.language %></:col>
|
||||
<:col :let={translation} label="Title"><%= translation.title %></:col>
|
||||
<:col :let={translation} label="Teaser"><%= translation.teaser %></:col>
|
||||
<:col :let={translation} label="Teaser"><%= translation.teaser |> tidy_raw %></:col>
|
||||
<%!-- <:col :let={translation} label="Content"><%= translation.content %></:col> --%>
|
||||
<:col :let={translation} label="Date"><%= translation.date %></:col>
|
||||
<:col :let={translation} label="Public"><%= translation.public %></:col>
|
||||
|
||||
Reference in New Issue
Block a user