mirror of
https://github.com/Nutomic/ibis.git
synced 2024-11-28 21:11:09 +00:00
List articles from all instances by default, add help text
This commit is contained in:
parent
0c247a8959
commit
05d260d463
2 changed files with 5 additions and 6 deletions
|
@ -31,9 +31,9 @@ pub fn ListArticles() -> impl IntoView {
|
||||||
let is_local_only = val == "only-local";
|
let is_local_only = val == "only-local";
|
||||||
set_only_local.update(|p| *p = is_local_only);
|
set_only_local.update(|p| *p = is_local_only);
|
||||||
}>
|
}>
|
||||||
<input type="radio" name="listing-type" id="only-local" checked />
|
<input type="radio" name="listing-type" id="only-local" />
|
||||||
<label for="only-local">Only Local</label>
|
<label for="only-local">Only Local</label>
|
||||||
<input type="radio" name="listing-type" id="all"/>
|
<input type="radio" name="listing-type" id="all" checked/>
|
||||||
<label for="all">All</label>
|
<label for="all">All</label>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<ul> {
|
<ul> {
|
||||||
|
|
|
@ -16,16 +16,15 @@ pub fn InstanceDetails() -> impl IntoView {
|
||||||
.unwrap()
|
.unwrap()
|
||||||
});
|
});
|
||||||
|
|
||||||
// TODO: display list of articles from instance?
|
|
||||||
view! {
|
view! {
|
||||||
<Suspense fallback=|| view! { "Loading..." }> {
|
<Suspense fallback=|| view! { "Loading..." }> {
|
||||||
move || instance_profile.get().map(|instance: DbInstance| {
|
move || instance_profile.get().map(|instance: DbInstance| {
|
||||||
view! {
|
view! {
|
||||||
<h1>{instance.ap_id.to_string()}</h1>
|
<h1>{instance.ap_id.to_string()}</h1>
|
||||||
<Show when=GlobalState::is_admin()>
|
<button text="Follow"/>
|
||||||
<button text="Follow"/>
|
<p>Follow the instance so that new edits are federated to your instance.</p>
|
||||||
</Show>
|
|
||||||
<div>{instance.description}</div>
|
<div>{instance.description}</div>
|
||||||
|
<p>TODO: show a list of articles from the instance. For now you can use the <a href="/article/list">Article list</a>.</p>
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
}</Suspense>
|
}</Suspense>
|
||||||
|
|
Loading…
Reference in a new issue