diff --git a/web/src/lib.rs b/web/src/lib.rs index 11c655be..5e20ae15 100644 --- a/web/src/lib.rs +++ b/web/src/lib.rs @@ -213,31 +213,37 @@ pub fn UserPage() -> impl IntoView { } }); view! { -
loading...
}.into_view(), - Some(None) => view! {error loading
- {x.summary().unwrap_or("").to_string()} -
-type
" "{x.actor_type().unwrap_or(apb::ActorType::Person).as_ref().to_string()}following
" "{x.following().get().map(|x| x.total_items().unwrap_or(0))}followers
" "{x.followers().get().map(|x| x.total_items().unwrap_or(0))}created
" "{x.published().map(|x| x.to_rfc3339())}loading...
}.into_view(), + Some(None) => view! {error loading
+ {x.summary().unwrap_or("").to_string()} +
+type
" "{x.actor_type().unwrap_or(apb::ActorType::Person).as_ref().to_string()}following
" "{x.following().get().map(|x| x.total_items().unwrap_or(0))}followers
" "{x.followers().get().map(|x| x.total_items().unwrap_or(0))}created
" "{x.published().map(|x| x.to_rfc3339())}loading failed
loading ...
}.into_view(), - }} +loading failed
loading ...
}.into_view(), + }} +{id}
" "[go]
{id}
" "[go]