propagate conn

This commit is contained in:
byte[] 2019-11-18 08:10:17 -05:00
parent 7405f460cf
commit 9d26cef16b
2 changed files with 3 additions and 3 deletions

View file

@ -6,4 +6,4 @@
.block__content.js-resizable-media-container
= for image <- @images do
= render PhilomenaWeb.ImageView, "_image_box.html", image: image, size: :thumb
= render PhilomenaWeb.ImageView, "_image_box.html", image: image, size: :thumb, conn: @conn

View file

@ -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}")
= 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