Add rendering the translation with title tags
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
defmodule OutlookWeb.TranslationLive.Show do
|
||||
use OutlookWeb, :live_view
|
||||
|
||||
alias Outlook.Translations
|
||||
alias Outlook.{Translations,InternalTree}
|
||||
|
||||
@impl true
|
||||
def mount(_params, _session, socket) do
|
||||
|
||||
@ -18,4 +18,8 @@
|
||||
<:item title="Unauthorized"><%= @translation.unauthorized %></:item>
|
||||
</.list>
|
||||
|
||||
<div class="article">
|
||||
<.render_doc tree={InternalTree.render_translation(@translation.article.content, @translation.content)} />
|
||||
</div>
|
||||
|
||||
<.back navigate={~p"/translations"}>Back to translations</.back>
|
||||
|
||||
Reference in New Issue
Block a user