diff --git a/lib/philomena_web/templates/activity/index.html.slime b/lib/philomena_web/templates/activity/index.html.slime index 59f516a9..a773fc41 100644 --- a/lib/philomena_web/templates/activity/index.html.slime +++ b/lib/philomena_web/templates/activity/index.html.slime @@ -30,11 +30,11 @@ = for topic <- @topics do = render PhilomenaWeb.ActivityView, "_topic_strip.html", topic: topic, conn: @conn .block.hide-mobile - a.block__header--single-item.center href="/lists/recent_comments" + a.block__header--single-item.center href="/comments" ' Recent Comments = for comment <- @comments do = render PhilomenaWeb.ActivityView, "_comment_strip.html", comment: comment, conn: @conn - a.block__header--single-item.center href="/search?q=first_seen_at.gt:3 days ago&sf=comments&sd=desc" + a.block__header--single-item.center href="/search?q=first_seen_at.gt:3 days ago&sf=comment_count&sd=desc" ' Most Commented-on Images .column-layout__main diff --git a/lib/philomena_web/templates/layout/_burger.html.slime b/lib/philomena_web/templates/layout/_burger.html.slime index 7b41f7bd..f41d1987 100644 --- a/lib/philomena_web/templates/layout/_burger.html.slime +++ b/lib/philomena_web/templates/layout/_burger.html.slime @@ -14,13 +14,10 @@ nav#burger a href="/filters" i.fa.fa-fw.fa-filter<> ' Filters - a href="/lists" - i.fa.fa-fw.fa-list<> - ' Rankings a href="/galleries" i.fa.fa-fw.fa-image<> ' Galleries - a href="/lists/recent_comments" + a href="/comments" i.fa.fa-fw.fa-comments<> ' Comments a href="/commissions" diff --git a/lib/philomena_web/templates/tag/_tag_info_row.html.slime b/lib/philomena_web/templates/tag/_tag_info_row.html.slime index 94b9a52b..5114adc9 100644 --- a/lib/philomena_web/templates/tag/_tag_info_row.html.slime +++ b/lib/philomena_web/templates/tag/_tag_info_row.html.slime @@ -56,7 +56,7 @@ .toggle-box-container .toggle-box-container__content - = for tag <- @tag.implied_by_tags do + = map_join @tag.implied_by_tags, ", ", fn tag -> => link tag.name, to: Routes.tag_path(@conn, :show, tag) br diff --git a/lib/philomena_web/views/app_view.ex b/lib/philomena_web/views/app_view.ex index 55ceaf9c..c643da93 100644 --- a/lib/philomena_web/views/app_view.ex +++ b/lib/philomena_web/views/app_view.ex @@ -65,6 +65,12 @@ defmodule PhilomenaWeb.AppView do Canada.Can.can?(conn.assigns.current_user, action, model) end + def map_join(enumerable, joiner, map_fn) do + enumerable + |> Enum.map(map_fn) + |> Enum.intersperse(joiner) + end + def number_with_delimiter(nil), do: "0" def number_with_delimiter(number) do number