From 7405f460cf0268b6d4f5671b83a0ea6ee7807c48 Mon Sep 17 00:00:00 2001 From: "byte[]" Date: Mon, 18 Nov 2019 00:26:36 -0500 Subject: [PATCH] don't require conn for now --- lib/philomena_web/templates/activity/_comment_strip.html.slime | 2 +- lib/philomena_web/templates/image/_image_container.html.slime | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/philomena_web/templates/activity/_comment_strip.html.slime b/lib/philomena_web/templates/activity/_comment_strip.html.slime index a2a3c686..d072a8c0 100644 --- a/lib/philomena_web/templates/activity/_comment_strip.html.slime +++ b/lib/philomena_web/templates/activity/_comment_strip.html.slime @@ -1,6 +1,6 @@ .block__content.flex.alternating-color .flex__shrink.spacing-right - = render PhilomenaWeb.ImageView, "_image_container.html", image: @comment.image, size: :thumb_tiny + = render PhilomenaWeb.ImageView, "_image_container.html", image: @comment.image, size: :thumb_tiny, conn: @conn .flex__grow a href="/#{@comment.image.id}#comment_#{@comment.id}" | # diff --git a/lib/philomena_web/templates/image/_image_container.html.slime b/lib/philomena_web/templates/image/_image_container.html.slime index b1e5d13a..4a5c4163 100644 --- a/lib/philomena_web/templates/image/_image_container.html.slime +++ b/lib/philomena_web/templates/image/_image_container.html.slime @@ -1,4 +1,4 @@ -- link = assigns[:link] || Routes.image_path(@conn, :show, @image) +- link = assigns[:link] || "/images/#{@image.id}" = image_container @image, @size, fn -> = cond do