@use plume_models::medias::{Media, MediaCategory}; @use plume_models::safe_string::SafeString; @use crate::templates::base; @use crate::template_utils::*; @use crate::routes::*; @(ctx: BaseContext, media: Media) @:base(ctx, i18n!(ctx.1, "Media details"), {}, {}, {

@i18n!(ctx.1, "Media details")

@i18n!(ctx.1, "Go back to the gallery")
@Html(media.html().unwrap_or_else(|_| SafeString::new("")))
@media.alt_text

@i18n!(ctx.1, "Markdown syntax") @i18n!(ctx.1, "Copy it into your articles, to insert this media:")

@media.markdown().unwrap_or_else(|_| SafeString::new(""))
@if media.category() == MediaCategory::Image {
}
})