fix(web): show statuses count
This commit is contained in:
parent
4e75ed3dbc
commit
d10376529e
1 changed files with 6 additions and 5 deletions
|
@ -68,8 +68,9 @@ pub fn UserPage() -> impl IntoView {
|
||||||
Some(view! { <sup class="ml-s"><small>"["{actor_type.as_ref().to_lowercase()}"]"</small></sup> } )
|
Some(view! { <sup class="ml-s"><small>"["{actor_type.as_ref().to_lowercase()}"]"</small></sup> } )
|
||||||
};
|
};
|
||||||
let created = object.published();
|
let created = object.published();
|
||||||
let following = object.following().get().map(|x| x.total_items().unwrap_or(0)).unwrap_or_default();
|
let following = object.following().get().map(|x| x.total_items().unwrap_or(0)).unwrap_or(0);
|
||||||
let followers = object.followers().get().map(|x| x.total_items().unwrap_or(0)).unwrap_or_default();
|
let followers = object.followers().get().map(|x| x.total_items().unwrap_or(0)).unwrap_or(0);
|
||||||
|
let statuses = object.outbox().get().map(|x| x.total_items().unwrap_or(0)).unwrap_or(0);
|
||||||
view! {
|
view! {
|
||||||
<div class="ml-3 mr-3">
|
<div class="ml-3 mr-3">
|
||||||
<div
|
<div
|
||||||
|
@ -92,20 +93,20 @@ pub fn UserPage() -> impl IntoView {
|
||||||
<td rowspan=2 class="bottom">
|
<td rowspan=2 class="bottom">
|
||||||
<b class="big">{display_name}</b>{actor_type_tag}
|
<b class="big">{display_name}</b>{actor_type_tag}
|
||||||
</td>
|
</td>
|
||||||
<td rowspan=2 class="bottom rev"><span class="emoji" title="statuses">"\u{1f582}"</span>" : "0</td>
|
<td rowspan=2 class="bottom rev" title="statuses">{statuses}" "<span class="emoji">"\u{1f582}"</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr></tr>
|
<tr></tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="top">
|
<td class="top">
|
||||||
<small><a class="clean hover" href={uid} target="_blank">{username.clone()}@{domain}</a></small>
|
<small><a class="clean hover" href={uid} target="_blank">{username.clone()}@{domain}</a></small>
|
||||||
</td>
|
</td>
|
||||||
<td class="rev"><span class="emoji" title="following">"👥"</span>" : "{following}</td>
|
<td class="rev" title="following">{following}" "<span class="emoji">"👥"</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
<DateTime t=created />
|
<DateTime t=created />
|
||||||
</td>
|
</td>
|
||||||
<td class="rev"><span class="emoji" title="followers">"📢"</span>" : "{followers}</td>
|
<td class="rev" title="followers">{followers}" "<span class="emoji">"📢"</span></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
<blockquote class="ml-2 mt-1">{
|
<blockquote class="ml-2 mt-1">{
|
||||||
|
|
Loading…
Reference in a new issue