mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-23 20:18:00 +01:00
forum titles, better tag disjunction
This commit is contained in:
parent
e922f9a94b
commit
8d5aad56f6
2 changed files with 5 additions and 2 deletions
|
@ -35,6 +35,6 @@ defmodule PhilomenaWeb.ForumController do
|
|||
|
||||
watching = Forums.subscribed?(forum, user)
|
||||
|
||||
render(conn, "show.html", title: "Showing Forum", forum: conn.assigns.forum, watching: watching, topics: topics)
|
||||
render(conn, "show.html", title: forum.name, forum: conn.assigns.forum, watching: watching, topics: topics)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -50,7 +50,10 @@ defmodule PhilomenaWeb.ProfileView do
|
|||
end
|
||||
|
||||
def tag_disjunction(tags) do
|
||||
Enum.map_join(tags, " || ", & &1.name)
|
||||
tags
|
||||
|> Enum.map(& &1.name)
|
||||
|> Enum.uniq()
|
||||
|> Enum.join(" || ")
|
||||
end
|
||||
|
||||
def can_ban?(conn),
|
||||
|
|
Loading…
Reference in a new issue