@use super::{layout_html, return_home_html, statics::images_css}; @use crate::{Image, FileType}; @(image: Image, sizes: &[u64]) @:layout_html("Thumbnails", Some(&format!("Thumbnails for {}", image.filename())), { @if image.is_video() { @if let Some(size) = sizes.last() { } } else { } }, { Here are your thumbnails Original File:@image.view(None) @for size in sizes { @size x @size @image.view(Some(*size)) } @:return_home_html() })
Original File:@image.view(None)
@size x @size
@image.view(Some(*size))