Add autoren and artikel for public viewing
This commit is contained in:
19
lib/outlook_web/controllers/artikel_html/show.html.heex
Normal file
19
lib/outlook_web/controllers/artikel_html/show.html.heex
Normal file
@ -0,0 +1,19 @@
|
||||
<.header>
|
||||
<%= @artikel.title %>
|
||||
<:subtitle><%= @artikel.article.author.name %></:subtitle>
|
||||
<:actions>
|
||||
<.link href={@artikel.article.url} >
|
||||
<%= @artikel.article.title %>
|
||||
</.link> <%= Calendar.strftime(@artikel.article.date, "%d.%m.%Y") %>
|
||||
</:actions>
|
||||
</.header>
|
||||
|
||||
<.list>
|
||||
<:item title="Title"><%= @artikel.title %></:item>
|
||||
<%!-- <:item title="Translator"><%= @artikel.translator %></:item> --%>
|
||||
<:item title="Unauthorized"><%= @artikel.unauthorized %></:item>
|
||||
<:item title="Date"><%= Calendar.strftime(@artikel.date, "%d.%m.%Y") %></:item>
|
||||
</.list>
|
||||
<div class="article"><%= @artikel.public_content |> raw %></div>
|
||||
|
||||
<.back navigate={~p"/autoren/#{@artikel.article.author}"}>Back to Autor</.back>
|
||||
Reference in New Issue
Block a user