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

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

@tabs(&[ (&uri!(instance::admin).to_string(), i18n!(ctx.1, "Configuration"), false), (&uri!(instance::admin_instances: page = _).to_string(), i18n!(ctx.1, "Instances"), false), (&uri!(instance::admin_users: page = _).to_string(), i18n!(ctx.1, "Users"), true), (&uri!(instance::admin_email_blocklist: page=_).to_string(), i18n!(ctx.1, "Email blocklist"), false) ])
@for user in users {
@avatar(ctx.0, &user, Size::Small, false, ctx.1)

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

@if user.is_admin() {

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

} else { @if user.is_moderator() {

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

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