mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
hide featured image if it is hit by the filter
This commit is contained in:
parent
a3b3a38fef
commit
c8747a0523
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue