Update design of public pages
This commit is contained in:
@ -1,19 +1,2 @@
|
||||
<.header>
|
||||
Listing Artikel
|
||||
<:actions>
|
||||
</:actions>
|
||||
</.header>
|
||||
|
||||
<.table id="artikel" rows={@artikel} row_click={&JS.navigate(~p"/artikel/#{&1}")}>
|
||||
<:col :let={artikel} label="Title"><%= artikel.title %></:col>
|
||||
<:col :let={artikel} label="Teaser"><%= artikel.teaser %></:col>
|
||||
<%!-- <:col :let={artikel} label="Translator"><%= artikel.translator %></:col> --%>
|
||||
<:col :let={artikel} label="Unauthorized"><%= artikel.unauthorized %></:col>
|
||||
<:col :let={artikel} label="Public content"><%= artikel.public_content %></:col>
|
||||
<:col :let={artikel} label="Date"><%= Calendar.strftime(artikel.date, "%d.%m.%Y") %></:col>
|
||||
<:action :let={artikel}>
|
||||
<div class="sr-only">
|
||||
<.link navigate={~p"/artikel/#{artikel}"}>Show</.link>
|
||||
</div>
|
||||
</:action>
|
||||
</.table>
|
||||
<.artikel :for={artikel <- @artikel} artikel={artikel} />
|
||||
|
||||
@ -1,19 +1,17 @@
|
||||
<.header>
|
||||
<%= @artikel.title %>
|
||||
<:subtitle><%= @artikel.article.author.name %></:subtitle>
|
||||
<:actions>
|
||||
<header class="mb-20">
|
||||
<h1 class="text-lg font-semibold leading-8 text-zinc-800"><%= @artikel.title %></h1>
|
||||
<p class="my-2"><.link href={"/autoren/#{@artikel.article.author.id}"}><%= @artikel.article.author.name %></.link>
|
||||
— <%= Calendar.strftime(@artikel.article.date, "%d.%m.%Y") %></p>
|
||||
<div>Original
|
||||
<.link href={@artikel.article.url} >
|
||||
<%= @artikel.article.title %>
|
||||
</.link> <%= Calendar.strftime(@artikel.article.date, "%d.%m.%Y") %>
|
||||
</:actions>
|
||||
</.header>
|
||||
</.link><br>
|
||||
</div>
|
||||
<div class="my-2">
|
||||
Übersetzung <%= Calendar.strftime(@artikel.date, "%d.%m.%Y") %>
|
||||
</div>
|
||||
</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>
|
||||
<div class="article w-full"><%= @artikel.public_content |> raw %></div>
|
||||
|
||||
<.back navigate={~p"/autoren/#{@artikel.article.author}"}>Back to Autor</.back>
|
||||
|
||||
Reference in New Issue
Block a user