relay/templates/admin.rs.html

21 lines
595 B
HTML
Raw Permalink 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>
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>
}
</div>
</div>