From 15ffe82ff727fb835885bb3e3ecf69c23fb329c4 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Tue, 8 Oct 2019 21:13:44 -0400 Subject: [PATCH] pass conn to template --- lib/philomena_web/templates/search/index.html.slime | 2 +- lib/philomena_web/templates/tag/show.html.slime | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/philomena_web/templates/search/index.html.slime b/lib/philomena_web/templates/search/index.html.slime index 47e27c3f..88819f06 100644 --- a/lib/philomena_web/templates/search/index.html.slime +++ b/lib/philomena_web/templates/search/index.html.slime @@ -1 +1 @@ -= render PhilomenaWeb.ImageView, "index.html", images: @images, route: fn p -> Routes.search_path(@conn, :index, p) end, params: [q: @search_query] \ No newline at end of file += render PhilomenaWeb.ImageView, "index.html", conn: @conn, images: @images, route: fn p -> Routes.search_path(@conn, :index, p) end, params: [q: @search_query] \ No newline at end of file diff --git a/lib/philomena_web/templates/tag/show.html.slime b/lib/philomena_web/templates/tag/show.html.slime index 13b1ecff..099d655e 100644 --- a/lib/philomena_web/templates/tag/show.html.slime +++ b/lib/philomena_web/templates/tag/show.html.slime @@ -1 +1 @@ -= render PhilomenaWeb.ImageView, "index.html", images: @images \ No newline at end of file += render PhilomenaWeb.ImageView, "index.html", conn: @conn, images: @images \ No newline at end of file