Add page titles to public pages
This commit is contained in:
@ -5,12 +5,12 @@ defmodule OutlookWeb.AutorController do
|
||||
|
||||
def index(conn, _params) do
|
||||
autoren = Autoren.list_autoren()
|
||||
render(conn, :index, autoren: autoren)
|
||||
render(conn, :index, autoren: autoren, page_title: "Autoren")
|
||||
end
|
||||
|
||||
def show(conn, %{"id" => id}) do
|
||||
autor = Autoren.get_autor!(id)
|
||||
# artikel = Autoren.list_artikel(autor)
|
||||
render(conn, :show, autor: autor)
|
||||
render(conn, :show, autor: autor, page_title: autor.name)
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user