Compare commits
2 commits
6efc5c4ad6
...
6bb9ee9570
Author | SHA1 | Date | |
---|---|---|---|
6bb9ee9570 | |||
8ef6dca52b |
2 changed files with 26 additions and 24 deletions
|
@ -8,6 +8,7 @@ pub fn Navigator() -> impl IntoView {
|
||||||
let auth = use_context::<Auth>().expect("missing auth context");
|
let auth = use_context::<Auth>().expect("missing auth context");
|
||||||
let (query, set_query) = create_signal("".to_string());
|
let (query, set_query) = create_signal("".to_string());
|
||||||
view! {
|
view! {
|
||||||
|
<form action={move|| format!("/web/search?q={}", query.get())}>
|
||||||
<table class="align">
|
<table class="align">
|
||||||
<tr>
|
<tr>
|
||||||
<td class="w-100">
|
<td class="w-100">
|
||||||
|
@ -20,6 +21,7 @@ pub fn Navigator() -> impl IntoView {
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
</form>
|
||||||
<table class="align w-100">
|
<table class="align w-100">
|
||||||
<tr><td colspan="2"><a href="/web/home"><input class="w-100" type="submit" class:hidden=move || !auth.present() value="home timeline" /></a></td></tr>
|
<tr><td colspan="2"><a href="/web/home"><input class="w-100" type="submit" class:hidden=move || !auth.present() value="home timeline" /></a></td></tr>
|
||||||
<tr><td colspan="2"><a href="/web/server"><input class="w-100" type="submit" value="server timeline" /></a></td></tr>
|
<tr><td colspan="2"><a href="/web/server"><input class="w-100" type="submit" value="server timeline" /></a></td></tr>
|
||||||
|
|
|
@ -410,33 +410,33 @@ pub fn SearchPage() -> impl IntoView {
|
||||||
|
|
||||||
view! {
|
view! {
|
||||||
<Breadcrumb>search</Breadcrumb>
|
<Breadcrumb>search</Breadcrumb>
|
||||||
<blockquote class="mt-1 mb-1">
|
<blockquote class="mt-3 mb-3">
|
||||||
<details open>
|
<details open>
|
||||||
<summary class="mb-2">
|
<summary class="mb-2">
|
||||||
<code class="cw center color ml-s w-100">users</code>
|
<code class="cw center color ml-s w-100">users</code>
|
||||||
</summary>
|
</summary>
|
||||||
|
<div class="pb-1">
|
||||||
{move || match user.get() {
|
{move || match user.get() {
|
||||||
None => None,
|
None => view! { <p class="center"><small>searching...</small></p> },
|
||||||
Some(None) => None,
|
Some(None) => view! { <p class="center"><code>N/A</code></p> },
|
||||||
Some(Some(u)) => Some(view! {
|
Some(Some(u)) => view! { <p><ActorBanner object=u /></p> },
|
||||||
<ActorBanner object=u />
|
|
||||||
}),
|
|
||||||
}}
|
}}
|
||||||
|
</div>
|
||||||
</details>
|
</details>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
|
|
||||||
<blockquote class="mt-1 mb-1">
|
<blockquote class="mt-3 mb-3">
|
||||||
<details open>
|
<details open>
|
||||||
<summary class="mb-2">
|
<summary class="mb-2">
|
||||||
<code class="cw center color ml-s w-100">objects</code>
|
<code class="cw center color ml-s w-100">objects</code>
|
||||||
</summary>
|
</summary>
|
||||||
|
<div class="pb-1">
|
||||||
{move || match object.get() {
|
{move || match object.get() {
|
||||||
None => None,
|
None => view! { <p class="center"><small>searching...</small></p> },
|
||||||
Some(None) => None,
|
Some(None) => view!{ <p class="center"><code>N/A</code></p> },
|
||||||
Some(Some(o)) => Some(view! {
|
Some(Some(o)) => view! { <p><Object object=o /></p> },
|
||||||
<Object object=o />
|
|
||||||
}),
|
|
||||||
}}
|
}}
|
||||||
|
</div>
|
||||||
</details>
|
</details>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue