@use plume_models::medias::Media; @use plume_models::safe_string::SafeString; @use templates::base; @use template_utils::*; @use routes::*; @(ctx: BaseContext, medias: Vec) @:base(ctx, "Your media", {}, {}, {

@i18n!(ctx.1, "Your media")

@i18n!(ctx.1, "Upload")
@if medias.is_empty() {

@i18n!(ctx.1, "You don't have any media yet.")

}
@for media in medias {
@Html(media.preview_html(ctx.0).unwrap_or(SafeString::new("")))

@media.alt_text

}
})