@use templates::base; @use template_utils::*; @use plume_models::users::User; @(ctx: BaseContext, users: Vec, page: i32, n_pages: i32) @:base(ctx, "Users", {}, {}, {

@i18n!(ctx.1, "Users")

@tabs(&[ ("/admin", i18n!(ctx.1, "Configuration"), false), ("/admin/instances", i18n!(ctx.1, "Instances"), false), ("/admin/users", i18n!(ctx.1, "Users"), true), ])
@for user in users {
@avatar(ctx.0, &user, Size::Small, false, ctx.1)

@user.name(ctx.0) @format!("@{}", user.username)

@if !user.is_admin {
}
}
@paginate(ctx.1, page, n_pages) })