lib/chiya_web/controllers/page_html.ex aktualisiert
This commit is contained in:
parent
8d33ce80e8
commit
50ea3397f5
1 changed files with 6 additions and 0 deletions
|
@ -10,6 +10,12 @@ defmodule ChiyaWeb.PageHTML do
|
||||||
attr :show_content, :boolean, default: true
|
attr :show_content, :boolean, default: true
|
||||||
def note_list_default(assigns)
|
def note_list_default(assigns)
|
||||||
|
|
||||||
|
attr :notes, :list, required: true
|
||||||
|
def note_list_microblog(assigns)
|
||||||
|
|
||||||
|
attr :notes, :list, required: true
|
||||||
|
def note_list_gallery(assigns)
|
||||||
|
|
||||||
def tag_list([]), do: "No Tags"
|
def tag_list([]), do: "No Tags"
|
||||||
def tag_list(tags), do: Enum.map_join(tags, ", ", fn t -> t.name end)
|
def tag_list(tags), do: Enum.map_join(tags, ", ", fn t -> t.name end)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue