@use crate::{data::{Contact, Instance}, templates::admin}; @use activitystreams::url::Url; @(instance: &Instance, software: Option<&str>, contact: Option<&Contact>, base: &Url)

@instance.title

@if let Some(software) = software { Running @software, version @instance.version. } @if instance.reg {
Registration is open. @if instance.requires_approval { Accounts must be approved by an admin. } } else{ Registration is closed }

@if !instance.description.trim().is_empty() || contact.is_some() {
@if !instance.description.trim().is_empty() {
@instance.title's description:
@Html(instance.description.trim())
} @if let Some(contact) = contact {
@instance.title's admin:
@:admin(contact, base) }
}