hide featured image if it is hit by the filter

This commit is contained in:
byte[] 2019-12-21 17:19:27 -05:00
parent a3b3a38fef
commit c8747a0523

View file

@ -1,6 +1,6 @@
.column-layout .column-layout
aside.column-layout__left#activity-side aside.column-layout__left#activity-side
= if @featured_image do = if not is_nil(@featured_image) and not PhilomenaWeb.ImageView.filter_or_spoiler_hits?(@conn, @featured_image) do
.center .center
h4.remove-top-margin Featured Image h4.remove-top-margin Featured Image
= render PhilomenaWeb.ImageView, "_image_box.html", image: @featured_image, size: :medium, conn: @conn = render PhilomenaWeb.ImageView, "_image_box.html", image: @featured_image, size: :medium, conn: @conn