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

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

@tabs(&[ (&uri!(instance::admin).to_string(), i18n!(ctx.1, "Configuration"), false), (&uri!(instance::admin_instances).to_string(), i18n!(ctx.1, "Instances"), false), (&uri!(instance::admin_users).to_string(), 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) })