2020-03-26 03:26:45 +00:00
|
|
|
@use crate::data::Info;
|
2020-05-21 21:24:56 +00:00
|
|
|
@use activitystreams_new::primitives::XsdAnyUri;
|
2020-03-26 03:26:45 +00:00
|
|
|
|
|
|
|
@(info: &Info, base: &XsdAnyUri)
|
|
|
|
|
|
|
|
<article class="info">
|
|
|
|
@if let Some(domain) = base.as_url().domain() {
|
|
|
|
<h4 class="padded"><a href="@base">@domain</a></h4>
|
|
|
|
}
|
|
|
|
<p class="padded">
|
|
|
|
Running @info.software, version @info.version.
|
|
|
|
@if info.reg {
|
|
|
|
Registration is open
|
|
|
|
}
|
|
|
|
</p>
|
|
|
|
</article>
|