2019-12-09 05:41:35 +01:00
|
|
|
= content_tag :div, [data: image_container_data(@conn, @image, :full), class: "image-show-container"] do
|
2019-11-12 01:31:22 +01:00
|
|
|
.block.block--fixed.block--warning.block--no-margin.image-filtered.hidden
|
|
|
|
strong
|
|
|
|
= link("This image is blocked by your current filter - click here to display it anyway", to: "#", data: [click_unfilter: @image.id])
|
|
|
|
p
|
|
|
|
= img_tag(Routes.static_path(PhilomenaWeb.Endpoint, "/images/tagblocked.svg"), width: 250, height: 250, data: [click_unfilter: @image.id])
|
|
|
|
span.filter-explanation
|
2019-12-06 18:12:55 +01:00
|
|
|
=< link("your current filter", to: Routes.filter_path(@conn, :show, @conn.assigns.current_filter), class: "filter-link")
|
|
|
|
' .
|
2019-11-12 01:31:22 +01:00
|
|
|
|
2019-12-10 02:28:00 +01:00
|
|
|
#image_target.hidden.image-show data-scaled=scaled_value(@conn.assigns.current_user) data-uris=Jason.encode!(thumb_urls(@image, can?(@conn, :hide, @image))) data-width=@image.image_width data-height=@image.image_height
|
2019-11-12 01:31:22 +01:00
|
|
|
= if @image.image_mime_type == "video/webm" do
|
|
|
|
video controls=true
|
|
|
|
- else
|
|
|
|
picture
|