@use plume_models::medias::*; @use crate::templates::base; @use crate::template_utils::*; @use crate::routes::*; @(ctx: BaseContext, medias: Vec, page: i32, n_pages: i32) @:base(ctx, i18n!(ctx.1, "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 {

@media.alt_text

@if let Some(cw) = media.content_warning {

@i18n!(ctx.1, "Content warning: {0}"; cw)

}
}
@paginate(ctx.1, page, n_pages) })