relay/templates/admin.rs.html

21 lines
601 B
HTML
Raw Permalink Normal View History

@use crate::data::Contact;
2020-06-20 04:11:02 +00:00
@use activitystreams_new::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>