@use templates::base; @use template_utils::*; @use routes::user::UpdateUserForm; @use validator::ValidationErrors; @use routes::*; @(ctx: BaseContext, form: UpdateUserForm, errors: ValidationErrors) @:base(ctx, "Edit your account", {}, {}, { @if let Some(u) = ctx.2.clone() {
@i18n!(ctx.1, "Be very careful, any action taken here can't be cancelled.") @if !u.is_admin {
} else {@i18n!(ctx.1, "Sorry, but as an admin, you can't leave your instance.")
} } })