@use template_utils::*; @use plume_models::users::User; @use routes::*; @(ctx: BaseContext, user: &User, follows: bool, is_remote: bool, instance_url: String)
@avatar(ctx.0, &user, Size::Medium, false, ctx.1)

@user.name(ctx.0) @user.get_fqn(ctx.0)

@if user.is_admin { @i18n!(ctx.1, "Admin") } @if ctx.2.clone().map(|u| u.id == user.id).unwrap_or(false) { @i18n!(ctx.1, "It is you") @i18n!(ctx.1, "Edit your profile") }

@if is_remote { @i18n!(ctx.1, "Open on {0}"; instance_url) } @if ctx.2.clone().map(|u| u.id != user.id).unwrap_or(false) {
@if follows { } else { }
}
@Html(user.summary.clone())