relay/templates/admin.rs.html

19 lines
559 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">
<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>
2021-11-23 22:19:59 +00:00
<p class="username">
2022-01-17 22:54:45 +00:00
@@@contact.username@if let Some(authority) = base.authority_str() {@@@authority}
2021-11-23 22:19:59 +00:00
</p>
</div>
</div>