mirror of
https://git.asonix.dog/asonix/relay.git
synced 2024-11-25 11:01:11 +00:00
20 lines
629 B
HTML
20 lines
629 B
HTML
@use crate::data::Contact;
|
|
@use activitystreams_new::primitives::XsdAnyUri;
|
|
|
|
@(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>
|
|
@if let Some(domain) = base.as_url().domain() {
|
|
<p class="username">@@@contact.username@@@domain</p>
|
|
} else {
|
|
<p class="username">@@@contact.username</p>
|
|
}
|
|
</div>
|
|
</div>
|