relay/templates/admin.rs.html

21 lines
625 B
HTML
Raw Normal View History

@use crate::data::Contact;
2020-03-26 19:19:23 +00:00
@use activitystreams::primitives::XsdAnyUri;
2020-03-26 19:19:23 +00:00
@(contact: &Contact, base: &XsdAnyUri)
<div class="admin">
<div class="left">
<figure class="avatar">
<img src="@contact.avatar" alt="@contact.display_name's avatar">
</figure>
</div>
<div class="right">
<p class="display-name"><a href="@contact.url">@contact.display_name</a></p>
2020-03-26 19:19:23 +00:00
@if let Some(domain) = base.as_url().domain() {
<p class="username">@@@contact.username@@@domain</p>
} else {
<p class="username">@@@contact.username</p>
}
</div>
</div>