aboutsummaryrefslogtreecommitdiff
path: root/server/src/routes/ui/browser.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2023-08-05 17:39:42 +0200
committermetamuffin <metamuffin@disroot.org>2023-08-05 17:39:42 +0200
commitdcc3b7a9f3c29df31907af1280b9000ac344458c (patch)
tree10cb2244b968f6d284dd189846f4db6cdd343128 /server/src/routes/ui/browser.rs
parentba3dedfaa6fee280761282f50fdee92b65cf0bfd (diff)
downloadjellything-dcc3b7a9f3c29df31907af1280b9000ac344458c.tar
jellything-dcc3b7a9f3c29df31907af1280b9000ac344458c.tar.bz2
jellything-dcc3b7a9f3c29df31907af1280b9000ac344458c.tar.zst
refactor node views
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 }}
}}
}
},