2021-02-10 04:05:06 +00:00
|
|
|
@use crate::db::Contact;
|
2022-01-17 22:54:45 +00:00
|
|
|
@use activitystreams::iri_string::types::IriString;
|
2020-03-26 03:26:45 +00:00
|
|
|
|
2022-01-17 22:54:45 +00:00
|
|
|
@(contact: &Contact, base: &IriString)
|
2020-03-26 03:26:45 +00:00
|
|
|
|
|
|
|
<div class="admin">
|
2022-11-21 20:23:37 +00:00
|
|
|
<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>
|
|
|
|
<p class="username">
|
|
|
|
@@@contact.username@if let Some(authority) = base.authority_str() {@@@authority}
|
|
|
|
</p>
|
|
|
|
</div>
|
2020-03-26 03:26:45 +00:00
|
|
|
</div>
|