Update to latest activitystreams
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
@use crate::db::Contact;
|
||||
@use activitystreams::url::Url;
|
||||
@use activitystreams::iri_string::types::IriString;
|
||||
|
||||
@(contact: &Contact, base: &Url)
|
||||
@(contact: &Contact, base: &IriString)
|
||||
|
||||
<div class="admin">
|
||||
<div class="left">
|
||||
@@ -12,7 +12,7 @@
|
||||
<div class="right">
|
||||
<p class="display-name"><a href="@contact.url">@contact.display_name</a></p>
|
||||
<p class="username">
|
||||
@@@contact.username@if let Some(domain) = base.domain() {@@@domain}
|
||||
@@@contact.username@if let Some(authority) = base.authority_str() {@@@authority}
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
@use crate::db::Info;
|
||||
@use activitystreams::url::Url;
|
||||
@use activitystreams::iri_string::types::IriString;
|
||||
|
||||
@(info: &Info, base: &Url)
|
||||
@(info: &Info, base: &IriString)
|
||||
|
||||
<article class="info">
|
||||
@if let Some(domain) = base.domain() {
|
||||
<h4 class="padded"><a href="@base">@domain</a></h4>
|
||||
@if let Some(authority) = base.authority_str() {
|
||||
<h4 class="padded"><a href="@base">@authority</a></h4>
|
||||
}
|
||||
<p class="padded">
|
||||
Running @info.software, version @info.version.
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
@use crate::{db::{Contact, Instance}, templates::admin};
|
||||
@use activitystreams::url::Url;
|
||||
@use activitystreams::iri_string::types::IriString;
|
||||
|
||||
@(instance: &Instance, software: Option<&str>, contact: Option<&Contact>, base: &Url)
|
||||
@(instance: &Instance, software: Option<&str>, contact: Option<&Contact>, base: &IriString)
|
||||
|
||||
<article class="instance">
|
||||
<h4 class="padded"><a href="@base">@instance.title</a></h4>
|
||||
|
||||
Reference in New Issue
Block a user