2024-11-13 16:59:42 +01:00
|
|
|
|
{{ range $index, $result := .Results }}
|
|
|
|
|
<div class="image">
|
2024-11-19 12:14:11 +01:00
|
|
|
|
{{ if $.HardCacheEnabled }}
|
|
|
|
|
<noscript>
|
|
|
|
|
<!-- JavaScript is disabled; serve actual images -->
|
|
|
|
|
<img src="{{ $result.ProxyFull }}" alt="{{ $result.Title }}" class="clickable" />
|
|
|
|
|
</noscript>
|
|
|
|
|
|
|
|
|
|
<!-- JavaScript is enabled; use placeholders -->
|
|
|
|
|
<img
|
2024-11-13 16:59:42 +01:00
|
|
|
|
src="/static/images/placeholder.svg"
|
|
|
|
|
data-id="{{ $result.ID }}"
|
|
|
|
|
data-full="{{ $result.ProxyFull }}"
|
|
|
|
|
data-proxy-full="{{ $result.ProxyThumb }}"
|
2024-11-19 12:14:11 +01:00
|
|
|
|
alt="{{ $result.Title }}"
|
|
|
|
|
class="clickable placeholder-img"
|
|
|
|
|
/>
|
|
|
|
|
{{ else }}
|
|
|
|
|
<!-- HardCacheEnabled is false; serve images directly -->
|
|
|
|
|
<img src="{{ $result.ProxyFull }}" alt="{{ $result.Title }}" class="clickable" />
|
|
|
|
|
{{ end }}
|
2024-11-13 16:59:42 +01:00
|
|
|
|
<div class="resolution">{{ $result.Width }} × {{ $result.Height }}</div>
|
|
|
|
|
<div class="details">
|
|
|
|
|
<span class="img_title clickable">{{ $result.Title }}</span>
|
|
|
|
|
<a href="{{ $result.Source }}" target="_blank" class="img_source">{{ translate "source" }}</a>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2024-11-19 12:14:11 +01:00
|
|
|
|
{{ end }}
|