relay/templates/admin.rs.html

19 lines
536 B
HTML
Raw Normal View History

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;
2022-01-17 22:54:45 +00:00
@(contact: &Contact, base: &IriString)
<div class="admin">
2022-11-21 20:23:37 +00:00
<div class="left">
<figure class="avatar">
2022-11-23 19:32:27 +00:00
<img loading="lazy" src="@contact.avatar" alt="@contact.display_name's avatar">
2022-11-21 20:23:37 +00:00
</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>
</div>