A couple more ui tweaks

This commit is contained in:
asonix
2020-03-26 14:19:23 -05:00
parent f11043e57d
commit 66c7e9d299
3 changed files with 36 additions and 18 deletions
+7 -2
View File
@@ -1,6 +1,7 @@
@use crate::data::Contact;
@use activitystreams::primitives::XsdAnyUri;
@(contact: &Contact)
@(contact: &Contact, base: &XsdAnyUri)
<div class="admin">
<div class="left">
@@ -10,6 +11,10 @@
</div>
<div class="right">
<p class="display-name"><a href="@contact.url">@contact.display_name</a></p>
<p class="username">@@@contact.username</p>
@if let Some(domain) = base.as_url().domain() {
<p class="username">@@@contact.username@@@domain</p>
} else {
<p class="username">@@@contact.username</p>
}
</div>
</div>