aboutsummaryrefslogtreecommitdiff
path: root/server/src/routes/ui/browser.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/routes/ui/browser.rs')
-rw-r--r--server/src/routes/ui/browser.rs10
1 files changed, 3 insertions, 7 deletions
diff --git a/server/src/routes/ui/browser.rs b/server/src/routes/ui/browser.rs
index e7f7d96..6e772d0 100644
--- a/server/src/routes/ui/browser.rs
+++ b/server/src/routes/ui/browser.rs
@@ -3,7 +3,7 @@
which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
Copyright (C) 2023 metamuffin <metamuffin.org>
*/
-use super::{account::session::Session, error::MyError, layout::DynLayoutPage, node::PosterCard};
+use super::{account::session::Session, error::MyError, layout::DynLayoutPage, node::NodeCard};
use crate::database::Database;
use anyhow::Context;
use jellycommon::{Node, NodeKind};
@@ -25,12 +25,8 @@ pub fn r_all_items(_sess: Session, db: &State<Database>) -> Result<DynLayoutPage
content: markup::new! {
.page.dir {
h1 { "All Items" }
- ul.directorylisting { @for (id, node) in &items {
- li {@PosterCard {
- wide: false, dir: false,
- id,
- title: &node.public.title
- }}
+ ul.children { @for (id, node) in &items {
+ li {@NodeCard { id, node: &node.public }}
}}
}
},