@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() @user.fqn

@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) } else { } @if ctx.2.clone().map(|u| u.id != user.id).unwrap_or(true) {
@if follows { } else { }
}
@Html(user.summary_html.clone())