renest markup to add hover text

This commit is contained in:
byte[] 2019-12-07 15:36:02 -05:00
parent a66c1e7e94
commit 969822946f

View file

@ -18,29 +18,35 @@
- true -> - true ->
.media-box__overlay.js-spoiler-info-overlay .media-box__overlay.js-spoiler-info-overlay
a href=link
= case render_intent(@conn, @image, @size) do = case render_intent(@conn, @image, @size) do
- {:hidpi, small_url, medium_url, hover_text} -> - {:hidpi, small_url, medium_url, hover_text} ->
a href=link title=hover_text
picture picture
img src=small_url srcset="#{small_url} 1x, #{medium_url} 2x" alt=hover_text img src=small_url srcset="#{small_url} 1x, #{medium_url} 2x" alt=hover_text
- {:image, small_url, hover_text} -> - {:image, small_url, hover_text} ->
a href=link title=hover_text
picture picture
img src=small_url alt=hover_text img src=small_url alt=hover_text
- {:video, webm, mp4, hover_text} -> - {:video, webm, mp4, hover_text} ->
a href=link title=hover_text
video alt=hover_text autoplay="autoplay" muted="muted" loop="loop" playsinline="playsinline" video alt=hover_text autoplay="autoplay" muted="muted" loop="loop" playsinline="playsinline"
source src=webm type="video/webm" source src=webm type="video/webm"
source src=mp4 type="video/mp4" source src=mp4 type="video/mp4"
img alt=hover_text img alt=hover_text
- {:filtered_image, hover_text} -> - {:filtered_image, hover_text} ->
a href=link title=hover_text
picture picture
img alt=hover_text img alt=hover_text
- {:filtered_video, hover_text} -> - {:filtered_video, hover_text} ->
a href=link title=hover_text
video autoplay="autoplay" muted="muted" loop="loop" playsinline="playsinline" video autoplay="autoplay" muted="muted" loop="loop" playsinline="playsinline"
img alt=hover_text img alt=hover_text
- :not_rendered -> - :not_rendered ->
a href=link
' Thumbnails not yet generated ' Thumbnails not yet generated