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.rs8
1 files changed, 6 insertions, 2 deletions
diff --git a/server/src/routes/ui/browser.rs b/server/src/routes/ui/browser.rs
index d0c09b1..30eb3f2 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::ItemCard};
+use super::{account::session::Session, error::MyError, layout::DynLayoutPage, node::PosterCard};
use crate::library::{Library, Node};
use rocket::{get, State};
use std::collections::VecDeque;
@@ -26,7 +26,11 @@ pub fn r_all_items(_sess: Session, library: &State<Library>) -> Result<DynLayout
.page.dir {
h1 { "All Items" }
ul.directorylisting { @for item in &items {
- li { @ItemCard { item: &item } }
+ li {@PosterCard {
+ wide: false, dir: false,
+ path: item.lib_path.clone(),
+ title: &item.info.title
+ }}
}}
}
},