2020-03-26 03:26:45 +00:00
|
|
|
@use crate::data::Contact;
|
2020-09-07 21:51:02 +00:00
|
|
|
@use activitystreams::url::Url;
|
2020-03-26 03:26:45 +00:00
|
|
|
|
2020-06-20 04:11:02 +00:00
|
|
|
@(contact: &Contact, base: &Url)
|
2020-03-26 03:26:45 +00:00
|
|
|
|
|
|
|
<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-06-20 04:11:02 +00:00
|
|
|
@if let Some(domain) = base.domain() {
|
2020-03-26 19:19:23 +00:00
|
|
|
<p class="username">@@@contact.username@@@domain</p>
|
|
|
|
} else {
|
|
|
|
<p class="username">@@@contact.username</p>
|
|
|
|
}
|
2020-03-26 03:26:45 +00:00
|
|
|
</div>
|
|
|
|
</div>
|