relay/templates/admin.rs.html

19 lines
520 B
HTML
Raw Normal View History

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