mirror of
https://github.com/Nutomic/ibis.git
synced 2024-11-28 20:11:10 +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";
|
||||
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>
|
||||
<input type="radio" name="listing-type" id="all"/>
|
||||
<input type="radio" name="listing-type" id="all" checked/>
|
||||
<label for="all">All</label>
|
||||
</fieldset>
|
||||
<ul> {
|
||||
|
|
|
@ -16,16 +16,15 @@ pub fn InstanceDetails() -> impl IntoView {
|
|||
.unwrap()
|
||||
});
|
||||
|
||||
// TODO: display list of articles from instance?
|
||||
view! {
|
||||
<Suspense fallback=|| view! { "Loading..." }> {
|
||||
move || instance_profile.get().map(|instance: DbInstance| {
|
||||
view! {
|
||||
<h1>{instance.ap_id.to_string()}</h1>
|
||||
<Show when=GlobalState::is_admin()>
|
||||
<button text="Follow"/>
|
||||
</Show>
|
||||
<p>Follow the instance so that new edits are federated to your instance.</p>
|
||||
<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>
|
||||
|
|
Loading…
Reference in a new issue