@use plume_models::medias::{Media, MediaCategory}; @use plume_models::safe_string::SafeString; @use templates::base; @use template_utils::*; @use 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(ctx.0).unwrap_or(SafeString::new("")))
@media.alt_text

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

@media.markdown(ctx.0).unwrap_or(SafeString::new(""))
@if media.category() == MediaCategory::Image {
}
})