From 9d26cef16beb2678ceb41601d802953859ea8c9b Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Mon, 18 Nov 2019 08:10:17 -0500 Subject: [PATCH] propagate conn --- lib/philomena_web/templates/profile/_recent_images.html.slime | 2 +- lib/philomena_web/templates/profile/show.html.slime | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/philomena_web/templates/profile/_recent_images.html.slime b/lib/philomena_web/templates/profile/_recent_images.html.slime index c1c99e70..48df4437 100644 --- a/lib/philomena_web/templates/profile/_recent_images.html.slime +++ b/lib/philomena_web/templates/profile/_recent_images.html.slime @@ -6,4 +6,4 @@ .block__content.js-resizable-media-container = for image <- @images do - = render PhilomenaWeb.ImageView, "_image_box.html", image: image, size: :thumb \ No newline at end of file + = render PhilomenaWeb.ImageView, "_image_box.html", image: image, size: :thumb, conn: @conn \ No newline at end of file diff --git a/lib/philomena_web/templates/profile/show.html.slime b/lib/philomena_web/templates/profile/show.html.slime index 9683c63e..69cee300 100644 --- a/lib/philomena_web/templates/profile/show.html.slime +++ b/lib/philomena_web/templates/profile/show.html.slime @@ -51,5 +51,5 @@ = pretty_time(award.awarded_on) .column-layout__main - = render PhilomenaWeb.ProfileView, "_recent_images.html", title: "Recent Uploads", images: @recent_uploads, view_all_path: Routes.search_path(@conn, :index, q: "uploader_id:#{@user.id}") - = render PhilomenaWeb.ProfileView, "_recent_images.html", title: "Recent Favorites", images: @recent_faves, view_all_path: Routes.search_path(@conn, :index, q: "faved_by_id:#{@user.id}") \ No newline at end of file + = render PhilomenaWeb.ProfileView, "_recent_images.html", title: "Recent Uploads", images: @recent_uploads, view_all_path: Routes.search_path(@conn, :index, q: "uploader_id:#{@user.id}"), conn: @conn + = render PhilomenaWeb.ProfileView, "_recent_images.html", title: "Recent Favorites", images: @recent_faves, view_all_path: Routes.search_path(@conn, :index, q: "faved_by_id:#{@user.id}"), conn: @conn \ No newline at end of file