mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 04:27:59 +01:00
20 lines
656 B
Text
20 lines
656 B
Text
.image-container class=@size data-image-tags="[]" data-size=@size data-uris=Jason.encode!(thumb_urls(@image, false))
|
|
= cond do
|
|
- @image.duplicate_id ->
|
|
.media-box__overlay
|
|
strong Marked Duplicate
|
|
- @image.destroyed_content ->
|
|
.media-box__overlay
|
|
strong Destroyed Content
|
|
- @image.hidden_from_users ->
|
|
.media-box__overlay
|
|
strong Deleted:
|
|
=< @image.deletion_reason
|
|
- true ->
|
|
|
|
.media-box__overlay.js-spoiler-info-overlay
|
|
a href="/#{@image.id}"
|
|
= if @image.thumbnails_generated do
|
|
picture: img src=thumb_url(@image, false, @size)
|
|
- else
|
|
| Thumbnails not yet generated
|